1. After TRAC 0.12 is installed, Chinese characters are not supported. Babel has been installed, but the language tab does not exist in the preference option.
The following error message is displayed on the homepage:
"TRACDetected an internal error:
Keyerror:'TRAC/Locale'
This is probably a local installation issue.
"
For more information, see http://www.gossamer-threads.com/lists/trac/users/46200. The solution provided here is because TRAC is installed first and Babel is installed later.
The solution is to install TRAC again.
2. Install TRAC selected database is MySQL 5.1.5, but in the use of trac-admin.py <env> initenv to create the environment when the error is reported:
....
/Var/lib/Python-Support/Python2.5/TRAC/DB/util.PY: 50: Warning: incorrect string value: '\ xe2 \ x86 \ x92 ex...' for column 'text' at Row 1
...
/Usr/share/TRAC/wiki-Default/Tracunicode => tracunicode
/Var/lib/Python-Support/Python2.5/TRAC/DB/util.PY: 50: Warning: incorrect string value: '\ xd8 \ xAA \Xd8 \ xb1 \Xd8 \ xa7... 'For column 'text' at row 0
....
This problem occurs because my database uses the default Latin1 encoding when setting, while TRAC requires a UTF-8 database,
Modify the MySQL my. ini configuration file and change the encoding to UTF-8.
Reference https://bugs.launchpad.net/ubuntu/+source/trac/+bug/174589