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