Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#2197 closed defect (wontfix)

Change Trac encoding to UTF-8

Reported by: Adrián Chaves Owned by:
Priority: Should Have Milestone: Website / Forum
Component: Core engine Keywords:
Cc: Patch:

Description

Details on how to do it: https://code.djangoproject.com/ticket/7310

Example of thing not correctly displayed in Trac: http://trac.wildfiregames.com/attachment/ticket/67/internationalization.patch (see the warning string in the default case of the getLocalizedResourceName function)

Change History (4)

comment:1 by fabio, 11 years ago

Milestone: BacklogWebsite / Forum

comment:2 by Philip Taylor, 10 years ago

Resolution: wontfix
Status: newclosed

Trac already has default_charset = utf-8, but it's still returning double-encoded bytes in the attachments. From looking briefly at Trac's code, I can't see any obvious places where it's going wrong, and I don't see any other relevant configuration options. So I don't think I can do anything about this.

comment:3 by historic_bruno, 10 years ago

Maybe it's a bug in the attachment viewing thing. Any examples of it working on other Trac installs? Or does it affect any other parts of Trac?

comment:4 by Philip Taylor, 10 years ago

The source browser (e.g. http://trac.wildfiregames.com/browser/ps/trunk/binaries/data/l10n/zh.engine.po|here) seems to handle UTF-8 files correctly by default (without needing an explicit property svn:mime-type = "text/plain; charset=UTF-8" or similar).

Note: See TracTickets for help on using tickets.