Changes between Version 5 and Version 6 of TracUnicode
- Timestamp:
- Mar 31, 2018, 10:01:04 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracUnicode
v5 v6 3 3 [[TracGuideToc]] 4 4 5 Trac encodes all text using [wikipedia:UTF-8], including text in tickets and wiki pages. Internal processing of text uses true [wikipedia:Unicode] representations. As such, it supports most commonly used character encodings.5 Trac encodes all text using [wikipedia:UTF-8], including text in tickets and wiki pages. Internal processing of text uses true [wikipedia:Unicode] representations. As such, it supports the most commonly used character encodings. 6 6 7 If the default encoding in your source code repository is not UTF-8, you can specify it in your [TracIni#trac-section trac.ini] file:7 If the default encoding of your source code repository is not UTF-8, you can specify it in [TracIni#trac-default_charset-option "[trac] default_charset"]: 8 8 {{{#!ini 9 9 default_charset = gbk 10 10 }}} 11 11 12 Also ensure that your [trac:DatabaseBackend database] stores its data in UTF-8, otherwise results may be unpredictable.12 Ensure that your [trac:DatabaseBackend database] stores its data in UTF-8, otherwise results may be unpredictable. 13 13 14 To convert your database to UTF-8, the easiest way is to create a dump of the database, convert it into UTF-8, for example using [http://www.gnu.org/software/libiconv/documentation/libiconv/iconv.1.html iconv], and then import it back into the database.14 To convert your database to UTF-8, the easiest way is to create a dump of the database, convert it into UTF-8, for example using [http://www.gnu.org/software/libiconv/documentation/libiconv/iconv.1.html iconv], and then re-import it. 15 15 16 16 == Examples