Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#7627 closed defect (duplicate)

UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-6: ordinal not in range(128)

Reported by: ragingwind@… Owned by: anonymous
Priority: normal Component: TagsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


How to Reproduce

While doing a GET operation on /tags, Trac issued an internal error.

The tags included in the WikiPage in Korean. It means is, I can see the error is, If this is the WikiPage name of the page to Korean.

Request parameters:

{'q': u"'lifeguide'"}

User agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4

System Information

Trac 0.12
Genshi 0.6
mod_wsgi 3.2 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
pysqlite 2.4.1
Python 2.6.5 (r265:79063, Apr 9 2010, 15:16:58)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]
setuptools 0.6c11
SQLite 3.3.6
jQuery 1.4.2

Enabled Plugins

TracTags 0.6

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/trac/web/", line 513, in _dispatch_request
  File "build/bdist.linux-i686/egg/trac/web/", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-i686/egg/tractags/", line 99, in process_request
    data['tag_body'] =  macro.expand_macro(formatter, None, query)
  File "build/bdist.linux-i686/egg/tractags/", line 80, in expand_macro
    key=lambda r: str(r[0].id)):
  File "build/bdist.linux-i686/egg/tractags/", line 80, in <lambda>
    key=lambda r: str(r[0].id)):
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-6: ordinal not in range(128)

Attachments (0)

Change History (2)

comment:1 Changed 13 years ago by ragingwind@…

Resolution: duplicate
Status: newclosed

0.6 version still have this problem. for fixing, please refer #3334

comment:2 Changed 13 years ago by Ryan J Ollos

Component: SELECT A HACKTagsPlugin

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain anonymous.
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.