id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
801	Encoding problems with strings	jean-baptiste.note@m4x.org	hvr	Hello,\r\n\r\nMy git commit logs have UTF-8 characters in them (essentially, unbreakable spaces, due to a lingering finger on the alt key in a UTF8 environment). This yields the following error:\r\n\r\nPython Traceback\r\n\r\nTraceback (most recent call last):\r\n  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 356, in dispatch_request\r\n    dispatcher.dispatch(req)\r\n  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 224, in dispatch\r\n    resp = chosen_handler.process_request(req)\r\n  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/browser.py", line 131, in process_request\r\n    self._render_directory(req, repos, node, rev)\r\n  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/browser.py", line 156, in _render_directory\r\n    changes = get_changes(self.env, repos, [i['rev'] for i in info])\r\n  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/util.py", line 47, in get_changes\r\n    shorten=True, absurls=absurls)\r\n  File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 1006, in wiki_to_oneliner\r\n    OneLinerFormatter(env, absurls, db).format(wikitext, out, shorten)\r\n  File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 914, in format\r\n    result = re.sub(self.wiki.rules, self.replace, result)\r\n  File "sre.py", line 142, in sub\r\n    return _compile(pattern, 0).sub(repl, string, count)\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 5: ordinal not in range(128)\r\n\r\nChanging the locale environment variable in apache with SetEnv to be UTF8 does not change anything in the plugin (it does change for python, though, as I had to generate the associated locale before trac could work again). So I resorted to the following hack. I'm a complete python newbie, so i don't know if this makes sense.\r\n\r\nJean-Baptiste	defect	closed	normal	GitPlugin	normal	fixed		jean-baptiste.note@m4x.org	0.10
