Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#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 anonymous, 20 years ago

I forgot to include the link to the actual diff issue:

http://anciens.enib.fr/trac/public/changeset/6#file48

comment:2 by Christopher Lenz, 20 years ago

Resolution: worksforme
Status: newclosed

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 Emmanuel Blot, 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…

comment:4 by anonymous, 20 years ago

Default charset is actually iso-8859-15, from db_default.py [989] (0.8.1 release)
I've updated TracIni.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz 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.