Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#7447 closed defect (fixed)

Trac 0.12 refuses to serve up the CSS

Reported by: michael_krastev@… Owned by: martin_s
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 4 years ago by martin_s

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 Changed 4 years ago by martin_s

Thanks for reporting this. I applied the proposed change.

Add Comment

Modify Ticket

Action
as closed The owner will remain martin_s.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.