Changes between Version 1 and Version 2 of TracUnicode
- Timestamp:
- Mar 12, 2015, 4:35:26 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracUnicode
v1 v2 2 2 [[TracGuideToc]] 3 3 4 Trac stores all text using UTF-8 encoding, including text in tickets and wiki pages. Internal processing of text uses true Unicode representations.4 Trac encodes all text using [http://en.wikipedia.org/wiki/UTF-8 UTF-8], including text in tickets and wiki pages. Internal processing of text uses true [http://en.wikipedia.org/wiki/Unicode Unicode] representations. As such, it supports most (all?) commonly used character encodings. 5 5 6 As such, it supports most (all?) commonly used character encodings. 6 If the default encoding in your source code repository is not UTF-8, you can specify it in the [TracIni#trac-section trac.ini]: 7 {{{ 8 default_charset = gbk 9 }}} 10 11 Also ensure that your [trac:DatabaseBackend database] stores its data in UTF-8, otherwise results may be unpredictable. 12 13 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. 7 14 8 15 == Examples == … … 74 81 75 82 === Polish === 76 Pchnąć w tę łódź jeża lub o śm skrzyń fig83 Pchnąć w tę łódź jeża lub osiem skrzyń fig; Nocna gżegżółka zawsze dzienną przekuka. 77 84 78 85 === Portuguese === … … 89 96 90 97 === Spanish === 91 Esto es un pequeño texto en Español, ahora una con acentó98 Esto es un pequeño texto en Español, donde el veloz murciélago hindú comía cardlllo y kiwi 92 99 93 100 === Swedish === … … 104 111 105 112 === Vietnamese === 106 Viết tiếng Việt cũng được. Nhưng search từ tiếng Việt thì không bôi vàng được. (Keyword(s) in Vietnamese search result can not be hightlighted !!!!).113 Viết tiếng Việt cũng được.
