| 1 | = Unicode Support in Trac = |
| 2 | [[TracGuideToc]] |
| 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. |
| 5 | |
| 6 | As such, it supports most (all?) commonly used character encodings. |
| 7 | |
| 8 | If your encoding is not UTF-8, you can use [wiki:TracModPython mod_python] to handle it. For example, if your local encoding is gbk, you can set |
| 9 | default_charset = gbk |
| 10 | in trac.ini. |
| 11 | |
| 12 | You also must make sure that your [trac:DatabaseBackend database backend] stores its data in UTF-8; otherwise strange things will happen. |
| 13 | |
| 14 | To convert your database to UTF-8, the easiest way is to dump the database, convert the dump into UTF-8 and then import the converted dump back into the database.[[BR]] |
| 15 | You can use [http://www.gnu.org/software/libiconv/documentation/libiconv/iconv.1.html iconv] to convert the dump. |
| 16 | |
| 17 | |
| 18 | == Examples == |
| 19 | |
| 20 | === Arabic === |
| 21 | ???? ???? ???? ?? ??????? ???????? ???? UTF-8? ??? ?? ??? ??????? ????????? ?? ????? ?????? ???????. |
| 22 | |
| 23 | === Bulgarian === |
| 24 | ??????????? ???? ?????? ??? |
| 25 | |
| 26 | === ?esky === |
| 27 | ?eština v kódování UTF-8, žádný problém. |
| 28 | |
| 29 | === Chinese === |
| 30 | Traditional: ????, ????; Simplified: ????????? |
| 31 | |
| 32 | === Croatian === |
| 33 | Ako podržava srpski i slovenski mora podržavati i Hrvatski - ??žš? ??ŽŠ? |
| 34 | |
| 35 | === English === |
| 36 | Yes indeed, Trac supports English. Fully. |
| 37 | |
| 38 | === Français === |
| 39 | Il est possible d'écrire en Français : à, ç, û, ... |
| 40 | |
| 41 | === German === |
| 42 | Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, Ä, Ö, Ü; und das scharfe ß |
| 43 | |
| 44 | === Greek === |
| 45 | ?? ???????? ?????????????? ??????? ??????. |
| 46 | |
| 47 | === Hebrew === |
| 48 | ??? ???? ????? ?????? ??? ?? ???? ?? |
| 49 | |
| 50 | === Hindi === |
| 51 | ?? ?????? ???? |
| 52 | |
| 53 | === Hungarian === |
| 54 | Árvízt?r? tükörfúrógép |
| 55 | |
| 56 | === Icelandic === |
| 57 | Ævar sagði við ömmu sína: Sjáðu hvað ég er stór! |
| 58 | |
| 59 | === Japanese === |
| 60 | ?? ???? ???? ?????? ????? |
| 61 | |
| 62 | === Korean === |
| 63 | ???? ??? ??????. ? ????? ?? |
| 64 | |
| 65 | === Latvian === |
| 66 | |
| 67 | Latviešu valoda ar? str?d?! |
| 68 | |
| 69 | === Lithuanian === |
| 70 | Sudalyvaukime ir mes. Ar veikia lietuviškos raid?s? ?????š??ž ?????Š??Ž Žinoma, kad veikia :) |
| 71 | Kas tie mes? |
| 72 | |
| 73 | === Persian (Farsi) === |
| 74 | ??? ?? ??? ????? ??? ??? ????? ????? ?????? ????? ???? ??? ???? ??? ?? ???? ?? ?? ? ??? ????? ???? ????? ????? ???? ?? HTML ??????? ????. |
| 75 | {{{ |
| 76 | #!html |
| 77 | <div dir="rtl"> |
| 78 | }}} |
| 79 | ??? ????? ?? ??? ?? ???? ?? ?? ????? ??? ?? ?? HTML ????? ??? ?? ????? 12345 ? ???? ????? ABCDEF ?? ??? ?????? ????? ???? ????. |
| 80 | {{{ |
| 81 | #!html |
| 82 | </div> |
| 83 | }}} |
| 84 | |
| 85 | === Polish === |
| 86 | Pchn?? w t? ?ód? je?a lub osiem skrzy? fig; Nocna g?eg?ó?ka zawsze dzienn? przekuka. |
| 87 | |
| 88 | === Portuguese === |
| 89 | É possível guardar caracteres especias da língua portuguesa, incluindo o símbolo da moeda européia '€', trema 'ü', crase 'à', agudos 'áéíóú', circunflexos 'âêô', til 'ãõ', cedilha 'ç', ordinais 'ªº', grau '°¹²³'. |
| 90 | |
| 91 | === Russian === |
| 92 | ???????? ???????? ?????: ??????? ????????... ? ????? "?" ????... |
| 93 | |
| 94 | === Serbian === |
| 95 | Podržan, uprkos ?injenici da se za njegovo pisanje koriste ??? ??? ????????. |
| 96 | |
| 97 | === Slovenian === |
| 98 | Ta suhi škafec puš?a vodo že od nekdaj! |
| 99 | |
| 100 | === Spanish === |
| 101 | Esto es un pequeño texto en Español, donde el veloz murciélago hindú comía cardlllo y kiwi |
| 102 | |
| 103 | === Swedish === |
| 104 | Räven raskar över isen med luva på. |
| 105 | |
| 106 | === Thai === |
| 107 | Trac ??????????????????????????! |
| 108 | |
| 109 | === Ukrainian === |
| 110 | ????????? ??????????? ????... |
| 111 | |
| 112 | === Urdu === |
| 113 | ???? ???? ??? ????? ???? ??? |
| 114 | |
| 115 | === Vietnamese === |
| 116 | Vi?t ti?ng Vi?t c?ng ???c. |