Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#7447 closed defect (fixed)

Trac 0.12 refuses to serve up the CSS

Reported by: michael_krastev@… 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)

Change History (2)

comment:1 Changed 14 years ago by Martin Scharrer

Resolution: fixed
Status: newclosed

(In [8330]) tracwikicss/plugin.py:: Added proper text encoding to fix #7447.

comment:2 Changed 14 years ago by Martin Scharrer

Thanks for reporting this. I applied the proposed change.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Martin Scharrer.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.