Changes between Version 1 and Version 2 of TracUnicode


Ignore:
Timestamp:
2020-10-21T13:53:03+13:00 (3 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 == Examples ==
     12Ensure that your [trac:DatabaseBackend database] stores its data in UTF-8, otherwise results may be unpredictable.
    913
    10 === Arabic ===
     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 [https://www.gnu.org/software/libiconv/documentation/libiconv/iconv.1.html iconv], and then re-import it.
     15
     16== Examples
     17
     18=== Arabic
     19
    1120تراك يقوم بحفظ كل الكلمات باستخدام صيغة UTF-8، بما في ذلك الكلمات المستخدمة في صفحات  التيكت والويكي.
    1221
    13 === Bulgarian ===
     22=== Bulgarian
     23
    1424Българският език работи ли?
    1525
    16 === Česky ===
     26=== Česky
     27
    1728Čeština v kódování UTF-8, žádný problém.
    1829
    19 === Chinese ===
    20 Traditional: 繁體中文, 漢字測試; Simplified: 简体中文,汉字测试
     30=== Chinese
    2131
    22 === Croatian ===
    23 Ako podržava srpski i slovenski mora podržavati i Hrvatski - čćžšđ ČĆŽŠĐ
     32Traditional: 繁體中文, 漢字測試
    2433
    25 === English ===
     34Simplified: 简体中文,汉字测试
     35
     36=== Croatian
     37
     38Ako podržava srpski i slovenski mora podržavati i Hrvatski - čćžšđ ČĆŽŠĐ.
     39
     40=== Dutch
     41
     42Enquêtes in de privésfeer zijn altijd geëngageerd.
     43
     44=== English
     45
    2646Yes indeed, Trac supports English. Fully.
    2747
    28 === Français ===
    29 Il est possible d'écrire en Français : à, ç, û, ...
     48=== Français
    3049
    31 === German ===
    32 Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, Ä, Ö, Ü; und das scharfe ß
     50Il est possible d'écrire en Français : à, ç, û.
    3351
    34 === Greek ===
     52=== German
     53
     54Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, Ä, Ö, Ü; und das scharfe ß.
     55
     56=== Greek
     57
    3558Τα Ελληνικά υποστηρίζονται επαρκώς επίσης.
    3659
    37 === Hebrew ===
     60=== Hebrew
     61
    3862אני יכול לאכול זכוכית וזה לא מזיק לי
    3963
    40 === Hindi ===
     64=== Hindi
     65
    4166अब हिन्दी में।
    4267
    43 === Hungarian ===
    44 Árvíztűrő tükörfúrógép
     68=== Hungarian
    4569
    46 === Icelandic ===
     70Árvíztűrő tükörfúrógép.
     71
     72=== Icelandic
     73
    4774Ævar sagði við ömmu sína: Sjáðu hvað ég er stór!
    4875
    49 === Japanese ===
     76=== Japanese
     77
    5078漢字 ひらがな カタカナ ハンカクカナ 日本語試験
    5179
    52 === Korean ===
    53 이번에는 한글로 써보겠습니다. 잘 보이나요? 한글
     80=== Korean
    5481
    55 === Latvian ===
     82이번에는 한글로 써보겠습니다. 잘 보이나요? 한글.
     83
     84=== Latvian
    5685
    5786Latviešu valoda arī strādā!
    5887
    59 === Lithuanian ===
    60 Sudalyvaukime ir mes. Ar veikia lietuviškos raidės? ąčęėįšųūž ĄČĘĖĮŠŲŪŽ Žinoma, kad veikia :)
    61 Kas tie mes?
     88=== Lithuanian
    6289
    63 === Persian (Farsi) ===
     90Sudalyvaukime ir mes. Ar veikia lietuviškos raidės? ąčęėįšųūž ĄČĘĖĮŠŲŪŽ Žinoma, kad veikia. Kas tie mes?
     91
     92=== Persian (Farsi)
     93
    6494این یک متن فارسی است ولی امکان نوشتن مستقیم فارسی نیست چون حالت متن از راست به چپ و جود ندارد برای فارسی نوشتن باید از HTML استفاده کنید.
    6595{{{
     
    73103}}}
    74104
    75 === Polish ===
    76 Pchnąć w tę łódź jeża lub ośm skrzyń fig
     105=== Polish
    77106
    78 === Portuguese ===
     107Pchnąć w tę łódź jeża lub osiem skrzyń fig. Nocna gżegżółka zawsze dzienną przekuka.
     108
     109=== Portuguese
     110
    79111É 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 '°¹²³'.
    80112
    81 === Russian ===
    82 Проверка русского языка: кажется работает... И буква "ё" есть...
     113=== Russian
    83114
    84 === Serbian ===
     115Проверка русского языка: кажется работает. И буква "ё" есть.
     116
     117=== Serbian
     118
    85119Podržan, uprkos činjenici da se za njegovo pisanje koriste чак два алфабета.
    86120
    87 === Slovenian ===
     121=== Slovenian
     122
    88123Ta suhi škafec pušča vodo že od nekdaj!
    89124
    90 === Spanish ===
    91 Esto es un pequeño texto en Español, ahora una con acentó
     125=== Spanish
    92126
    93 === Swedish ===
     127Esto es un pequeño texto en Español, donde el veloz murciélago hindú comía cardillo y kiwi.
     128
     129=== Swedish
     130
    94131Räven raskar över isen med luva på.
    95132
    96 === Thai ===
     133=== Thai
     134
    97135Trac แสดงภาษาไทยได้อย่างถูกต้อง!
    98136
    99 === Ukrainian ===
    100 Перевірка української мови...
     137=== Ukrainian
    101138
    102 === Urdu ===
     139Перевірка української мови.
     140
     141=== Urdu
     142
    103143ٹریک اردو بھی سپورٹ کرتا ہے۔
    104144
    105 === 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 !!!!).
     145=== Vietnamese
     146
     147Viết tiếng Việt cũng được.