Changes between Version 2 and Version 3 of TracUnicode
- Timestamp:
- Jun 2, 2023 10:32:55 AM (18 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracUnicode
v2 v3 1 = Unicode Support in Trac = 1 = Unicode Support in Trac 2 2 3 [[TracGuideToc]] 3 4 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 Trac 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. 5 6 6 As such, it supports most (all?) commonly used character encodings. 7 If 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 9 default_charset = gbk 10 }}} 7 11 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. 12 Ensure that your [trac:DatabaseBackend database] stores its data in UTF-8, otherwise results may be unpredictable. 11 13 12 You also must make sure that your [trac:DatabaseBackend database backend] stores its data in UTF-8; otherwise strange things will happen.14 To 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. 13 15 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 16 17 18 === Arabic 17 19 18 == Examples ==19 20 === Arabic ===21 20 تراك يقوم بحفظ كل الكلمات باستخدام صيغة UTF-8، بما في ذلك الكلمات المستخدمة في صفحات التيكت والويكي. 22 21 23 === Bulgarian === 22 === Bulgarian 23 24 24 Българският език работи ли? 25 25 26 === Česky === 26 === Česky 27 27 28 Čeština v kódování UTF-8, žádný problém. 28 29 29 === Chinese === 30 Traditional: 繁體中文, 漢字測試; Simplified: 简体中文,汉字测试 30 === Chinese 31 31 32 === Croatian === 33 Ako podržava srpski i slovenski mora podržavati i Hrvatski - čćžšđ ČĆŽŠĐ 32 Traditional: 繁體中文, 漢字測試 34 33 35 === English === 34 Simplified: 简体中文,汉字测试 35 36 === Croatian 37 38 Ako podržava srpski i slovenski mora podržavati i Hrvatski - čćžšđ ČĆŽŠĐ. 39 40 === Dutch 41 42 Enquêtes in de privésfeer zijn altijd geëngageerd. 43 44 === English 45 36 46 Yes indeed, Trac supports English. Fully. 37 47 38 === Français === 39 Il est possible d'écrire en Français : à, ç, û, ... 48 === Français 40 49 41 === German === 42 Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, Ä, Ö, Ü; und das scharfe ß 50 Il est possible d'écrire en Français : à, ç, û. 43 51 44 === Greek === 52 === German 53 54 Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, Ä, Ö, Ü; und das scharfe ß. 55 56 === Greek 57 45 58 Τα Ελληνικά υποστηρίζονται επαρκώς επίσης. 46 59 47 === Hebrew === 60 === Hebrew 61 48 62 אני יכול לאכול זכוכית וזה לא מזיק לי 49 63 50 === Hindi === 64 === Hindi 65 51 66 अब हिन्दी में। 52 67 53 === Hungarian === 54 Árvíztűrő tükörfúrógép 68 === Hungarian 55 69 56 === Icelandic === 70 Árvíztűrő tükörfúrógép. 71 72 === Icelandic 73 57 74 Ævar sagði við ömmu sína: Sjáðu hvað ég er stór! 58 75 59 === Japanese === 76 === Japanese 77 60 78 漢字 ひらがな カタカナ ハンカクカナ 日本語試験 61 79 62 === Korean === 63 이번에는 한글로 써보겠습니다. 잘 보이나요? 한글 80 === Korean 64 81 65 === Latvian === 82 이번에는 한글로 써보겠습니다. 잘 보이나요? 한글. 83 84 === Latvian 66 85 67 86 Latviešu valoda arī strādā! 68 87 69 === Lithuanian === 70 Sudalyvaukime ir mes. Ar veikia lietuviškos raidės? ąčęėįšųūž ĄČĘĖĮŠŲŪŽ Žinoma, kad veikia :) 71 Kas tie mes? 88 === Lithuanian 72 89 73 === Persian (Farsi) === 90 Sudalyvaukime ir mes. Ar veikia lietuviškos raidės? ąčęėįšųūž ĄČĘĖĮŠŲŪŽ Žinoma, kad veikia. Kas tie mes? 91 92 === Persian (Farsi) 93 74 94 این یک متن فارسی است ولی امکان نوشتن مستقیم فارسی نیست چون حالت متن از راست به چپ و جود ندارد برای فارسی نوشتن باید از HTML استفاده کنید. 75 95 {{{ … … 83 103 }}} 84 104 85 === Polish === 86 Pchnąć w tę łódź jeża lub osiem skrzyń fig; Nocna gżegżółka zawsze dzienną przekuka. 105 === Polish 87 106 88 === Portuguese === 107 Pchnąć w tę łódź jeża lub osiem skrzyń fig. Nocna gżegżółka zawsze dzienną przekuka. 108 109 === Portuguese 110 89 111 É 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 112 91 === Russian === 92 Проверка русского языка: кажется работает... И буква "ё" есть... 113 === Russian 93 114 94 === Serbian === 115 Проверка русского языка: кажется работает. И буква "ё" есть. 116 117 === Serbian 118 95 119 Podržan, uprkos činjenici da se za njegovo pisanje koriste чак два алфабета. 96 120 97 === Slovenian === 121 === Slovenian 122 98 123 Ta suhi škafec pušča vodo že od nekdaj! 99 124 100 === Spanish === 101 Esto es un pequeño texto en Español, donde el veloz murciélago hindú comía cardlllo y kiwi 125 === Spanish 102 126 103 === Swedish === 127 Esto es un pequeño texto en Español, donde el veloz murciélago hindú comía cardillo y kiwi. 128 129 === Swedish 130 104 131 Räven raskar över isen med luva på. 105 132 106 === Thai === 133 === Thai 134 107 135 Trac แสดงภาษาไทยได้อย่างถูกต้อง! 108 136 109 === Ukrainian === 110 Перевірка української мови... 137 === Ukrainian 111 138 112 === Urdu === 139 Перевірка української мови. 140 141 === Urdu 142 113 143 ٹریک اردو بھی سپورٹ کرتا ہے۔ 114 144 115 === Vietnamese === 145 === Vietnamese 146 116 147 Viết tiếng Việt cũng được.