broken national characters while viewing the changeset
We're running subversion repository server on linux (system's LANG=ru_RU.KOI8-R), while clients are on windows (codepage windows-1251).
Almost all sources in the repository contains characters in windows-1251 codepage.
Trac's repository browser shows sources in UTF-8 where national chars are broken (e.g. - unreadable)…
Seems it assumes that if the server's LANG is KOI8-R then sources are also KOI8-R and converts sources to UTF-8 from KOI8-R. This is wrong.
Is there a hack exists to tell Trac the encoding of the sources to be converted to UTF-8 from?
Change History
(6)
Milestone: |
→ 0.8
|
Priority: |
normal → highest
|
Severity: |
normal → critical
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Cc: |
tiger@… added
|
Component: |
browser → changeset view
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Summary: |
broken national characters while viewing the sources → broken national characters while viewing the changeset
|
Version: |
0.7.1 → devel
|
Resolution: |
→ fixed
|
Status: |
reopened → closed
|
My guess is that Trac should honour the svn:mime-type property and its charset parameter, which is how Subversion keeps track of charsets. Eg.:
or in the above case,
Trac should probably convert from that given charset to UTF-8 before displaying it to the browser. Currently, Trac seems to completely ignore the charset specified there, and always assume UTF-8.