hi guys I've been testing my site with TG1.05 and I've come across a weird problem. I use Routes and I have unicode URLs. If I access
http://localhost:8080/band/Motörhead all works fine, however if I am logged in I get the infamous
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 13: ordinal not in range(128)
The full trace is here:
http://paste.turbogears.org/paste/3061
As I say when I log out it all works! My current fix is to define _cp_log_access in my root controller and make one small change
http://paste.turbogears.org/paste/3062 on line 8 I explicitly create a unicode string from the request.line using utf8 encoding. I can do this because I know my URL's are utf8 (routes 1.9 default encoding I believe).
As part of the process I've moved from Routes 1.7 to Routes
1.9.1. reverting back to 1.7 doesn't seem to change anything.
So has anyone get any ideas why it works when NOT logged in and how I can close in on this issue?
--
blog:
http://www.luckydonkey.comwork:
http://www.newmetalarmy.com