Modify ↓
#7447 closed defect (fixed)
Trac 0.12 refuses to serve up the CSS
Reported by: | Owned by: | Martin Scharrer | |
---|---|---|---|
Priority: | normal | Component: | WikiCssPlugin |
Severity: | normal | Keywords: | unicode encode |
Cc: | Trac Release: | 0.12 |
Description
I was not able to get this plugin to work with Trac 0.12. Everything was installed and configured as needed, but the following error appeared in the trac log file every time a page was accessed:
2010-08-02 18:27:13,656 Trac[plugin] ERROR: decoding Unicode is not supported
The fix is quite simple (or is it a workaround, I am not sure):
Change tracwikicss/plugin.py, line 45 to convert the unicode string to bytes:
req.send( wiki.text.encode( "utf-8" ), content_type='text/css', status=200)
It worked for me.
Attachments (0)
Note: See
TracTickets for help on using
tickets.
(In [8330]) tracwikicss/plugin.py:: Added proper text encoding to fix #7447.