Changes between Version 1 and Version 2 of TracUnicode
- Timestamp:
- Aug 15, 2016, 5:36:15 PM (8 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 3 4 As such, it supports most (all?) commonly used character encodings.4 Trac encodes all text using [http://en.wikipedia.org/wiki/UTF-8 UTF-8], including text in tickets and wiki pages. Internal processing of text uses true [http://en.wikipedia.org/wiki/Unicode Unicode] representations. As such, it supports most (all?) commonly used character encodings. 5 5 6 If the default encoding in your source code repository is not UTF-8, you can specify it in the [TracIni#trac-section trac.ini]: 7 {{{ 8 default_charset = gbk 9 }}} 10 11 Also ensure that your [trac:DatabaseBackend database] stores its data in UTF-8, otherwise results may be unpredictable. 12 13 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 import it back into the database. 6 14 7 15 == Examples == 8 Please keep sorted order when you add an entry.9 16 10 17 === Arabic === … … 18 25 19 26 === Chinese === 20 Traditional: ''繁體中文, 許功蓋會育''; Simplified: ''简体中文,许功盖会育'' 27 Traditional: 繁體中文, 漢字測試; Simplified: 简体中文,汉字测试 28 29 === Croatian === 30 Ako podržava srpski i slovenski mora podržavati i Hrvatski - čćžšđ ČĆŽŠĐ 21 31 22 32 === English === … … 24 34 25 35 === Français === 26 ''Il est possible d'écrire en Français : à, ç, û, ...'' 36 Il est possible d'écrire en Français : à, ç, û, ... 27 37 28 38 === German === 29 Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, ...39 Trac-Wiki muß auch deutsche Umlaute richtig anzeigen: ö, ä, ü, Ä, Ö, Ü; und das scharfe ß 30 40 31 41 === Greek === … … 35 45 אני יכול לאכול זכוכית וזה לא מזיק לי 36 46 47 === Hindi === 48 अब हिन्दी में। 49 50 === Hungarian === 51 Árvíztűrő tükörfúrógép 52 37 53 === Icelandic === 38 ''Ævar sagði við ömmu sína: Sjáðu hvað ég er stór!'' 54 Ævar sagði við ömmu sína: Sjáðu hvað ég er stór! 39 55 40 56 === Japanese === 41 ''漢字 ひらがな カタカナ ハンカクカナ'' 57 漢字 ひらがな カタカナ ハンカクカナ 日本語試験 42 58 43 59 === Korean === 44 ''이번에는 한글로 써보겠습니다. 잘 보이나요?'' 60 이번에는 한글로 써보겠습니다. 잘 보이나요? 한글 61 62 === Latvian === 63 64 Latviešu valoda arī strādā! 65 66 === Lithuanian === 67 Sudalyvaukime ir mes. Ar veikia lietuviškos raidės? ąčęėįšųūž ĄČĘĖĮŠŲŪŽ Žinoma, kad veikia :) 68 Kas tie mes? 45 69 46 70 === Persian (Farsi) === 47 این یک متن فارسی است ولی از چپ به راست 71 این یک متن فارسی است ولی امکان نوشتن مستقیم فارسی نیست چون حالت متن از راست به چپ و جود ندارد برای فارسی نوشتن باید از HTML استفاده کنید. 72 {{{ 73 #!html 74 <div dir="rtl"> 75 }}} 76 این نمونه یک متن از راست به چپ فارسی است که در HTML نوشته شده تا اعداد 12345 و حروف لاتین ABCDEF در محل خودشان نمایش داده شوند. 77 {{{ 78 #!html 79 </div> 80 }}} 48 81 49 82 === Polish === 50 Pchnąć w tę łódź jeża lub o śm skrzyń fig83 Pchnąć w tę łódź jeża lub osiem skrzyń fig; Nocna gżegżółka zawsze dzienną przekuka. 51 84 52 85 === Portuguese === … … 54 87 55 88 === Russian === 56 Проверка русского языка: кажется работает... 89 Проверка русского языка: кажется работает... И буква "ё" есть... 57 90 58 91 === Serbian === … … 63 96 64 97 === Spanish === 65 Esto es un pequeño texto en Español, ahora una con acentó98 Esto es un pequeño texto en Español, donde el veloz murciélago hindú comía cardlllo y kiwi 66 99 67 100 === Swedish === 68 ''Räven raskar över isen med luva på.'' 101 Räven raskar över isen med luva på. 69 102 70 103 === Thai === … … 73 106 === Ukrainian === 74 107 Перевірка української мови... 108 109 === Urdu === 110 ٹریک اردو بھی سپورٹ کرتا ہے۔ 111 112 === Vietnamese === 113 Viết tiếng Việt cũng được.