Changes between Version 2 and Version 3 of TracUnicode


Ignore:
Timestamp:
2023-04-20T18:47:43Z (13 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 [https://en.wikipedia.org/wiki/UTF-8 UTF-8], including text in tickets and wiki pages. Internal processing of text uses true [https://en.wikipedia.org/wiki/Unicode 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 [wiki: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 [https://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 ==
     20تراك يقوم بحفظ كل الكلمات باستخدام صيغة UTF-8، بما في ذلك الكلمات المستخدمة في صفحات  التيكت والويكي.
    1921
    20 === Arabic ===
    21 ???? ???? ???? ?? ??????? ???????? ???? UTF-8? ??? ?? ??? ??????? ????????? ?? ?????  ?????? ???????.
     22=== Bulgarian
    2223
    23 === Bulgarian ===
    24 ??????????? ???? ?????? ???
     24Българският език работи ли?
    2525
    26 === ?esky ===
    27 ?eština v kódování UTF-8, žádný problém.
     26=== Česky
    2827
    29 === Chinese ===
    30 Traditional: ????, ????; Simplified: ?????????
     28Čeština v kódování UTF-8, žádný problém.
    3129
    32 === Croatian ===
    33 Ako podržava srpski i slovenski mora podržavati i Hrvatski - ??žš? ??ŽŠ?
     30=== Chinese
    3431
    35 === English ===
     32Traditional: 繁體中文, 漢字測試
     33
     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
    3646Yes indeed, Trac supports English. Fully.
    3747
    38 === Français ===
    39 Il est possible d'écrire en Français : à, ç, û, ...
     48=== Français
    4049
    41 === German ===
    42 Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, Ä, Ö, Ü; und das scharfe ß
     50Il est possible d'écrire en Français : à, ç, û.
    4351
    44 === Greek ===
    45 ?? ???????? ?????????????? ??????? ??????.
     52=== German
    4653
    47 === Hebrew ===
    48 ??? ???? ????? ?????? ??? ?? ???? ??
     54Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, Ä, Ö, Ü; und das scharfe ß.
    4955
    50 === Hindi ===
    51 ?? ?????? ????
     56=== Greek
    5257
    53 === Hungarian ===
    54 Árvízt?r? tükörfúrógép
     58Τα Ελληνικά υποστηρίζονται επαρκώς επίσης.
    5559
    56 === Icelandic ===
     60=== Hebrew
     61
     62אני יכול לאכול זכוכית וזה לא מזיק לי
     63
     64=== Hindi
     65
     66अब हिन्दी में।
     67
     68=== Hungarian
     69
     70Árvíztűrő tükörfúrógép.
     71
     72=== Icelandic
     73
    5774Ævar sagði við ömmu sína: Sjáðu hvað ég er stór!
    5875
    59 === Japanese ===
    60 ?? ???? ???? ?????? ?????
     76=== Japanese
    6177
    62 === Korean ===
    63 ???? ??? ??????. ? ????? ??
     78漢字 ひらがな カタカナ ハンカクカナ 日本語試験
    6479
    65 === Latvian ===
     80=== Korean
    6681
    67 Latviešu valoda ar? str?d?!
     82이번에는 한글로 써보겠습니다. 잘 보이나요? 한글.
    6883
    69 === Lithuanian ===
    70 Sudalyvaukime ir mes. Ar veikia lietuviškos raid?s? ?????š??ž ?????Š??Ž Žinoma, kad veikia :)
    71 Kas tie mes?
     84=== Latvian
    7285
    73 === Persian (Farsi) ===
    74 ??? ?? ??? ????? ??? ??? ????? ????? ?????? ????? ???? ??? ???? ??? ?? ???? ?? ?? ? ??? ????? ???? ????? ????? ???? ?? HTML ??????? ????.
     86Latviešu valoda arī strādā!
     87
     88=== Lithuanian
     89
     90Sudalyvaukime ir mes. Ar veikia lietuviškos raidės? ąčęėįšųūž ĄČĘĖĮŠŲŪŽ Žinoma, kad veikia. Kas tie mes?
     91
     92=== Persian (Farsi)
     93
     94این یک متن فارسی است ولی امکان نوشتن مستقیم فارسی نیست چون حالت متن از راست به چپ و جود ندارد برای فارسی نوشتن باید از HTML استفاده کنید.
    7595{{{
    7696#!html
    7797<div dir="rtl">
    7898}}}
    79 ??? ????? ?? ??? ?? ???? ?? ?? ????? ??? ?? ?? HTML ????? ??? ?? ????? 12345 ? ???? ????? ABCDEF ?? ??? ?????? ????? ???? ????.
     99این نمونه یک متن از راست به چپ فارسی است که در HTML نوشته شده تا اعداد 12345 و حروف لاتین ABCDEF در محل خودشان نمایش داده شوند.
    80100{{{
    81101#!html
     
    83103}}}
    84104
    85 === Polish ===
    86 Pchn?? w t? ?ód? je?a lub osiem skrzy? fig; Nocna g?eg?ó?ka zawsze dzienn? przekuka.
     105=== Polish
    87106
    88 === Portuguese ===
     107Pchnąć w tę łódź jeża lub osiem skrzyń fig. Nocna gżegżółka zawsze dzienną przekuka.
     108
     109=== Portuguese
     110
    89111É 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 '°¹²³'.
    90112
    91 === Russian ===
    92 ???????? ???????? ?????: ??????? ????????... ? ????? "?" ????...
     113=== Russian
    93114
    94 === Serbian ===
    95 Podržan, uprkos ?injenici da se za njegovo pisanje koriste ??? ??? ????????.
     115Проверка русского языка: кажется работает. И буква "ё" есть.
    96116
    97 === Slovenian ===
    98 Ta suhi škafec puš?a vodo že od nekdaj!
     117=== Serbian
    99118
    100 === Spanish ===
    101 Esto es un pequeño texto en Español, ahora una con acentó
     119Podržan, uprkos činjenici da se za njegovo pisanje koriste чак два алфабета.
    102120
    103 === Swedish ===
     121=== Slovenian
     122
     123Ta suhi škafec pušča vodo že od nekdaj!
     124
     125=== Spanish
     126
     127Esto es un pequeño texto en Español, donde el veloz murciélago hindú comía cardillo y kiwi.
     128
     129=== Swedish
     130
    104131Räven raskar över isen med luva på.
    105132
    106 === Thai ===
    107 Trac ??????????????????????????!
     133=== Thai
    108134
    109 === Ukrainian ===
    110 ????????? ??????????? ????...
     135Trac แสดงภาษาไทยได้อย่างถูกต้อง!
    111136
    112 === Urdu ===
    113 ???? ???? ??? ????? ???? ???
     137=== Ukrainian
    114138
    115 === Vietnamese ===
    116 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 !!!!).
     139Перевірка української мови.
     140
     141=== Urdu
     142
     143ٹریک اردو بھی سپورٹ کرتا ہے۔
     144
     145=== Vietnamese
     146
     147Viết tiếng Việt cũng được.