Edgewall Software
Modify

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)

unrecognizable Character in TracBrowser.PNG (42.6 KB ) - added by xiaobo 15 years ago.
Unrecognizable character displayed in TracBrowser

Download all attachments as: .zip

Change History (5)

by xiaobo, 15 years ago

Unrecognizable character displayed in TracBrowser

comment:1 by anonymous, 15 years ago

Summary: Unrecognizable characters displaying in TracBrowser for file containing Chinese character but encoding in ANSIUnrecognizable characters displaying in TracBrowser for file containing Chinese

in reply to:  description comment:2 by anonymous, 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.

screen shot: Unrecognizable character displayed in TracBrowser

comment:3 by Christian Boos, 15 years ago

Component: i18nversion control/browser
Keywords: default_charset added
Owner: set to Christian Boos

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 Christian Boos, 15 years ago

Component: version control/browserproject
Milestone: 0.12not applicable
Resolution: fixed
Severity: normaltrivial
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.