Opened 15 years ago
Closed 15 years ago
#9094 closed defect (fixed)
Unrecognizable characters displaying in TracBrowser for file containing Chinese
Reported by: | xiaobo | Owned by: | Christian Boos |
---|---|---|---|
Priority: | normal | Milestone: | not applicable |
Component: | project | Version: | 0.12dev |
Severity: | trivial | Keywords: | default_charset |
Cc: | borisyang@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
When I'm checking Chinese locale via http://trac.edgewall.org/demo-0.12/browser/trunk/trac/locale/zh_CN/LC_MESSAGES/messages.po. I realized there are unreadable characters displaying, e.g. line 25 and many others. I have also attached a screenshot for this.
In my own environment, similar issue occurs for file encoded as ANSI, but contains Chinese characters.(however if there are Chinese characters in filename, it can be displayed properly) and this can be get ride of by re-save the file with encoding as UTF-8.
Attachments (1)
Change History (5)
by , 15 years ago
Attachment: | unrecognizable Character in TracBrowser.PNG added |
---|
comment:1 by , 15 years ago
Summary: | Unrecognizable characters displaying in TracBrowser for file containing Chinese character but encoding in ANSI → Unrecognizable characters displaying in TracBrowser for file containing Chinese |
---|
comment:2 by , 15 years ago
Replying to xiaobo:
When I'm checking Chinese locale via http://trac.edgewall.org/demo-0.12/browser/trunk/trac/locale/zh_CN/LC_MESSAGES/messages.po. I realized there are unreadable characters displaying, e.g. line 25 and many others. I have also attached a screenshot for this.
In my own environment, similar issue occurs for file encoded as ANSI, but contains Chinese characters.(however if there are Chinese characters in filename, it can be displayed properly) and this can be get ride of by re-save the file with encoding as UTF-8.
comment:3 by , 15 years ago
Component: | i18n → version control/browser |
---|---|
Keywords: | default_charset added |
Owner: | set to |
The file contains proper Chinese messages, encoded in UTF-8.
This Trac has [trac] default_charset = utf-8
settings, so there's indeed something wrong.
comment:4 by , 15 years ago
Component: | version control/browser → project |
---|---|
Milestone: | 0.12 → not applicable |
Resolution: | → fixed |
Severity: | normal → trivial |
Status: | new → closed |
Oops, I looked in this instance, but the link pointed to the demo-0.12 Trac, which had [trac] default_charset = iso-8859-15
.
Changed that configuration setting, all is working as expected.
Unrecognizable character displayed in TracBrowser