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