Opened 5 years ago

Closed 10 days ago

Last modified 9 days ago

#6379 closed defect (fixed)

ValueError: Can't send unicode content

Reported by: anonymous Owned by: eseifert
Priority: normal Component: RobotsTxtPlugin
Severity: blocker Keywords: unicode
Cc: Trac Release: 0.12


Running trac HEAD and attempting to use RobotsTxt plugin.

The wiki page contains three open-brace characters, followed by the sample robots.txt content and then three close-brace characters. When navigating to /robots.txt, I get the error:

ValueError: Can't send unicode content

Attachments (1)

robotstxt-trac-0.12.patch (476 bytes) - added by eseifert 3 years ago.
Patch for Trac 0.12 compatibility

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by eseifert

Patch for Trac 0.12 compatibility

comment:1 Changed 3 years ago by eseifert

  • Keywords unicode added

Added a patch that resolved the issue for me. It checks for unicode content and encodes it to a normal string. Additionally the patch removes leading and trailing new lines and spaces from the page content.

comment:2 Changed 10 days ago by rjollos

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

In 14006:

Encode content as utf-8. Patch by eseifert. Fixes #6379.

comment:3 Changed 9 days ago by rjollos

  • Owner changed from coderanger to eseifert

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from eseifert. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.