Changes between Version 2 and Version 3 of TracUnicode


Ignore:
Timestamp:
Mar 23, 2023, 6:44:37 AM (20 months ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracUnicode

    v2 v3  
    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.
    7 
    8 If the default encoding in your source code repository is not UTF-8, you can specify it in the [TracIni#trac-section trac.ini], for example:
    9 {{{
     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
    109default_charset = gbk
    1110}}}
    1211
    13 You also must make sure that your [trac:DatabaseBackend database backend] stores its data in UTF-8; otherwise strange things will happen.
     12Ensure that your [trac:DatabaseBackend database] stores its data in UTF-8, otherwise results may be unpredictable.
    1413
    15 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]]
    16 You can use [http://www.gnu.org/software/libiconv/documentation/libiconv/iconv.1.html iconv] to convert the dump.
     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.
    1715
     16== Examples
    1817
    19 == Examples ==
     18=== Arabic
    2019
    21 === Arabic ===
    2220تراك يقوم بحفظ كل الكلمات باستخدام صيغة UTF-8، بما في ذلك الكلمات المستخدمة في صفحات  التيكت والويكي.
    2321
    24 === Bulgarian ===
     22=== Bulgarian
     23
    2524Българският език работи ли?
    2625
    27 === Česky ===
     26=== Česky
     27
    2828Čeština v kódování UTF-8, žádný problém.
    2929
    30 === Chinese ===
    31 Traditional: 繁體中文, 漢字測試; Simplified: 简体中文,汉字测试
     30=== Chinese
    3231
    33 === Croatian ===
    34 Ako podržava srpski i slovenski mora podržavati i Hrvatski - čćžšđ ČĆŽŠĐ
     32Traditional: 繁體中文, 漢字測試
    3533
    36 === 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
    3746Yes indeed, Trac supports English. Fully.
    3847
    39 === Français ===
    40 Il est possible d'écrire en Français : à, ç, û, ...
     48=== Français
    4149
    42 === German ===
    43 Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, Ä, Ö, Ü; und das scharfe ß
     50Il est possible d'écrire en Français : à, ç, û.
    4451
    45 === Greek ===
     52=== German
     53
     54Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, Ä, Ö, Ü; und das scharfe ß.
     55
     56=== Greek
     57
    4658Τα Ελληνικά υποστηρίζονται επαρκώς επίσης.
    4759
    48 === Hebrew ===
     60=== Hebrew
     61
    4962אני יכול לאכול זכוכית וזה לא מזיק לי
    5063
    51 === Hindi ===
     64=== Hindi
     65
    5266अब हिन्दी में।
    5367
    54 === Hungarian ===
    55 Árvíztűrő tükörfúrógép
     68=== Hungarian
    5669
    57 === Icelandic ===
     70Árvíztűrő tükörfúrógép.
     71
     72=== Icelandic
     73
    5874Ævar sagði við ömmu sína: Sjáðu hvað ég er stór!
    5975
    60 === Japanese ===
     76=== Japanese
     77
    6178漢字 ひらがな カタカナ ハンカクカナ 日本語試験
    6279
    63 === Korean ===
    64 이번에는 한글로 써보겠습니다. 잘 보이나요? 한글
     80=== Korean
    6581
    66 === Latvian ===
     82이번에는 한글로 써보겠습니다. 잘 보이나요? 한글.
     83
     84=== Latvian
    6785
    6886Latviešu valoda arī strādā!
    6987
    70 === Lithuanian ===
    71 Sudalyvaukime ir mes. Ar veikia lietuviškos raidės? ąčęėįšųūž ĄČĘĖĮŠŲŪŽ Žinoma, kad veikia :)
    72 Kas tie mes?
     88=== Lithuanian
    7389
    74 === Persian (Farsi) ===
     90Sudalyvaukime ir mes. Ar veikia lietuviškos raidės? ąčęėįšųūž ĄČĘĖĮŠŲŪŽ Žinoma, kad veikia. Kas tie mes?
     91
     92=== Persian (Farsi)
     93
    7594این یک متن فارسی است ولی امکان نوشتن مستقیم فارسی نیست چون حالت متن از راست به چپ و جود ندارد برای فارسی نوشتن باید از HTML استفاده کنید.
    7695{{{
     
    84103}}}
    85104
    86 === Polish ===
    87 Pchnąć w tę łódź jeża lub osiem skrzyń fig; Nocna gżegżółka zawsze dzienną przekuka.
     105=== Polish
    88106
    89 === Portuguese ===
     107Pchnąć w tę łódź jeża lub osiem skrzyń fig. Nocna gżegżółka zawsze dzienną przekuka.
     108
     109=== Portuguese
     110
    90111É 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 '°¹²³'.
    91112
    92 === Russian ===
    93 Проверка русского языка: кажется работает... И буква "ё" есть...
     113=== Russian
    94114
    95 === Serbian ===
     115Проверка русского языка: кажется работает. И буква "ё" есть.
     116
     117=== Serbian
     118
    96119Podržan, uprkos činjenici da se za njegovo pisanje koriste чак два алфабета.
    97120
    98 === Slovenian ===
     121=== Slovenian
     122
    99123Ta suhi škafec pušča vodo že od nekdaj!
    100124
    101 === Spanish ===
    102 Esto es un pequeño texto en Español, donde el veloz murciélago hindú comía cardlllo y kiwi
     125=== Spanish
    103126
    104 === 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
    105131Räven raskar över isen med luva på.
    106132
    107 === Thai ===
     133=== Thai
     134
    108135Trac แสดงภาษาไทยได้อย่างถูกต้อง!
    109136
    110 === Ukrainian ===
    111 Перевірка української мови...
     137=== Ukrainian
    112138
    113 === Urdu ===
     139Перевірка української мови.
     140
     141=== Urdu
     142
    114143ٹریک اردو بھی سپورٹ کرتا ہے۔
    115144
    116 === Vietnamese ===
     145=== Vietnamese
     146
    117147Viết tiếng Việt cũng được.