Changes between Version 1 and Version 2 of TracUnicode


Ignore:
Timestamp:
Mar 12, 2015, 4:35:26 PM (11 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracUnicode

    v1 v2  
    22[[TracGuideToc]]
    33
    4 Trac stores all text using UTF-8 encoding, including text in tickets and wiki pages. Internal processing of text uses true Unicode representations.
     4Trac 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.
    55
    6 As such, it supports most (all?) commonly used character encodings.
     6If the default encoding in your source code repository is not UTF-8, you can specify it in the [TracIni#trac-section trac.ini]:
     7{{{
     8default_charset = gbk
     9}}}
     10
     11Also ensure that your [trac:DatabaseBackend database] stores its data in UTF-8, otherwise results may be unpredictable.
     12
     13To 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.
    714
    815== Examples ==
     
    7481
    7582=== Polish ===
    76 Pchnąć w tę łódź jeża lub ośm skrzyń fig
     83Pchnąć w tę łódź jeża lub osiem skrzyń fig; Nocna gżegżółka zawsze dzienną przekuka.
    7784
    7885=== Portuguese ===
     
    8996
    9097=== Spanish ===
    91 Esto es un pequeño texto en Español, ahora una con acentó
     98Esto es un pequeño texto en Español, donde el veloz murciélago hindú comía cardlllo y kiwi
    9299
    93100=== Swedish ===
     
    104111
    105112=== 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 !!!!).
     113Viết tiếng Việt cũng được.