Changes between Version 75 and Version 76 of TracUnicode
- Timestamp:
- Mar 16, 2017, 6:18:15 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracUnicode
v75 v76 4 4 [[TranslatedPages]] 5 5 6 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.6 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. 7 7 8 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:8 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"]: 9 9 {{{#!ini 10 10 default_charset = gbk 11 11 }}} 12 12 13 Also ensure that your [trac:DatabaseBackend database] stores its data in UTF-8, otherwise results may be unpredictable.13 Ensure that your [trac:DatabaseBackend database] stores its data in UTF-8, otherwise results may be unpredictable. 14 14 15 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.15 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. 16 16 17 17 == Examples