Opened 19 years ago
Closed 19 years ago
#2020 closed defect (worksforme)
Broken encoding in the ticket timestamps.
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | ticket system | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | tiger@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
You can see in the attachment bugshot the funny characters instead of cyrillic text in the comments' dates. Guess it's related to wrong recoding local date to the UTF8.
BTW: I have below entry in the trac.conf. Source browser works normally.
default_charset = windows-1251
Attachments (3)
Change History (5)
by , 19 years ago
Attachment: | bug-shot1.jpg added |
---|
comment:1 by , 19 years ago
Summary: | Broken encoding in the ticket comments. → Broken encoding in the ticket timestamps. |
---|
This happens only if using mod_python. CGI version works normally, it just writes latin dates.
I've tried below approaches with no success:
- I've tried to set option
PythonOption TracLocale "ru_RU.cp1251"
in the apache's <Location> directive. - I've tried to set both env vars LANG && LC_ALL for apache…
Debug output: os.environ = {'LANG': 'ru_RU.cp1251', 'SHLVL': '1', 'PWD': '/', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin', 'LC_ALL': 'ru_RU.cp1251', '_': '/sbin/initlog'}
Additional info: i686 GNU/Linux, Python 2.3.5, Apache/2.0.46, mod_python-3.1.4
bug shot