#1556 closed defect (worksforme)
Diff fails to display utf-8 files
Reported by: | Emmanuel Blot | Owned by: | Christopher Lenz |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | version control/changeset view | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It seems that the diff attempts to encode in utf8 files that are already encoded in utf8, which leads to weird output.
This change may have been introduced in [1660]
As an example, see browser.cs browser.cs from the french translation of Trac.
Attachments (0)
Change History (4)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
This is due to the default_charset
config option, which is set to ISO Latin 1 encoding by default.
Setting it to UTF-8 should fix it for you, if all the files in your repository use UTF-8. If the repository has mixed encodings, you'll need to set the charset in the snv:mime-type
property of those files that are the expection to the rule.
comment:3 by , 20 years ago
Sorry, I did not know about this flag.
Does the default value has recently changed ? The documentation in TracIni#trac reports UTF-8 as the default encoding.
Anyway, I've changed the default_charset to "utf-8" and restart the Apache2 server, but the problem still shows up. Weird. I also tried "utf8" and it does not change the way the diff is displayed…
I forgot to include the link to the actual diff issue:
http://anciens.enib.fr/trac/public/changeset/6#file48