close Warning: Can't synchronize with repository "(default)" ( does not appear to be a Git repository. See the log for more information.). Look in the Trac log for more information.

Changes between Version 1 and Version 2 of TracUnicode


Ignore:
Timestamp:
10/12/2017 05:25:58 PM (7 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracUnicode

    v1 v2  
    1 = Unicode Support in Trac =
     1= Unicode Support in Trac
     2
    23[[TracGuideToc]]
    34
    4 Trac stores all text using UTF-8 encoding, including text in tickets and wiki pages. Internal processing of text uses true Unicode representations.
     5Trac 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.
    56
    6 As such, it supports most (all?) commonly used character encodings.
     7If 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{{{#!ini
     9default_charset = gbk
     10}}}
    711
    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.
     12Ensure that your [trac:DatabaseBackend database] stores its data in UTF-8, otherwise results may be unpredictable.
    1113
    12 You also must make sure that your [trac:DatabaseBackend database backend] stores its data in UTF-8; otherwise strange things will happen.
     14To 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.
    1315
    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== Examples
    1617
     18=== Arabic
    1719
    18 == Examples ==
    19 
    20 === Arabic ===
    2120تراك يقوم بحفظ كل الكلمات باستخدام صيغة UTF-8، بما في ذلك الكلمات المستخدمة في صفحات  التيكت والويكي.
    2221
    23 === Bulgarian ===
     22=== Bulgarian
     23
    2424Българският език работи ли?
    2525
    26 === Česky ===
     26=== Česky
     27
    2728Čeština v kódování UTF-8, žádný problém.
    2829
    29 === Chinese ===
    30 Traditional: 繁體中文, 漢字測試; Simplified: 简体中文,汉字测试
     30=== Chinese
    3131
    32 === Croatian ===
    33 Ako podržava srpski i slovenski mora podržavati i Hrvatski - čćžšđ ČĆŽŠĐ
     32Traditional: 繁體中文, 漢字測試
    3433
    35 === English ===
     34Simplified: 简体中文,汉字测试
     35
     36=== Croatian
     37
     38Ako podržava srpski i slovenski mora podržavati i Hrvatski - čćžšđ ČĆŽŠĐ.
     39
     40=== English
     41
    3642Yes indeed, Trac supports English. Fully.
    3743
    38 === Français ===
    39 Il est possible d'écrire en Français : à, ç, û, ...
     44=== Français
    4045
    41 === German ===
    42 Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, Ä, Ö, Ü; und das scharfe ß
     46Il est possible d'écrire en Français : à, ç, û.
    4347
    44 === Greek ===
     48=== German
     49
     50Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, Ä, Ö, Ü; und das scharfe ß.
     51
     52=== Greek
     53
    4554Τα Ελληνικά υποστηρίζονται επαρκώς επίσης.
    4655
    47 === Hebrew ===
     56=== Hebrew
     57
    4858אני יכול לאכול זכוכית וזה לא מזיק לי
    4959
    50 === Hindi ===
     60=== Hindi
     61
    5162अब हिन्दी में।
    5263
    53 === Hungarian ===
    54 Árvíztűrő tükörfúrógép
     64=== Hungarian
    5565
    56 === Icelandic ===
     66Árvíztűrő tükörfúrógép.
     67
     68=== Icelandic
     69
    5770Ævar sagði við ömmu sína: Sjáðu hvað ég er stór!
    5871
    59 === Japanese ===
     72=== Japanese
     73
    6074漢字 ひらがな カタカナ ハンカクカナ 日本語試験
    6175
    62 === Korean ===
    63 이번에는 한글로 써보겠습니다. 잘 보이나요? 한글
     76=== Korean
    6477
    65 === Latvian ===
     78이번에는 한글로 써보겠습니다. 잘 보이나요? 한글.
     79
     80=== Latvian
    6681
    6782Latviešu valoda arī strādā!
    6883
    69 === Lithuanian ===
    70 Sudalyvaukime ir mes. Ar veikia lietuviškos raidės? ąčęėįšųūž ĄČĘĖĮŠŲŪŽ Žinoma, kad veikia :)
    71 Kas tie mes?
     84=== Lithuanian
    7285
    73 === Persian (Farsi) ===
     86Sudalyvaukime ir mes. Ar veikia lietuviškos raidės? ąčęėįšųūž ĄČĘĖĮŠŲŪŽ Žinoma, kad veikia. Kas tie mes?
     87
     88=== Persian (Farsi)
     89
    7490این یک متن فارسی است ولی امکان نوشتن مستقیم فارسی نیست چون حالت متن از راست به چپ و جود ندارد برای فارسی نوشتن باید از HTML استفاده کنید.
    7591{{{
     
    8399}}}
    84100
    85 === Polish ===
    86 Pchnąć w tę łódź jeża lub osiem skrzyń fig; Nocna gżegżółka zawsze dzienną przekuka.
     101=== Polish
    87102
    88 === Portuguese ===
     103Pchnąć w tę łódź jeża lub osiem skrzyń fig. Nocna gżegżółka zawsze dzienną przekuka.
     104
     105=== Portuguese
     106
    89107É 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 '°¹²³'.
    90108
    91 === Russian ===
    92 Проверка русского языка: кажется работает... И буква "ё" есть...
     109=== Russian
    93110
    94 === Serbian ===
     111Проверка русского языка: кажется работает. И буква "ё" есть.
     112
     113=== Serbian
     114
    95115Podržan, uprkos činjenici da se za njegovo pisanje koriste чак два алфабета.
    96116
    97 === Slovenian ===
     117=== Slovenian
     118
    98119Ta suhi škafec pušča vodo že od nekdaj!
    99120
    100 === Spanish ===
    101 Esto es un pequeño texto en Español, donde el veloz murciélago hindú comía cardlllo y kiwi
     121=== Spanish
    102122
    103 === Swedish ===
     123Esto es un pequeño texto en Español, donde el veloz murciélago hindú comía cardillo y kiwi.
     124
     125=== Swedish
     126
    104127Räven raskar över isen med luva på.
    105128
    106 === Thai ===
     129=== Thai
     130
    107131Trac แสดงภาษาไทยได้อย่างถูกต้อง!
    108132
    109 === Ukrainian ===
    110 Перевірка української мови...
     133=== Ukrainian
    111134
    112 === Urdu ===
     135Перевірка української мови.
     136
     137=== Urdu
     138
    113139ٹریک اردو بھی سپورٹ کرتا ہے۔
    114140
    115 === Vietnamese ===
     141=== Vietnamese
     142
    116143Viết tiếng Việt cũng được.