Edgewall Software

Opened 18 years ago

Last modified 18 years ago

#2903 closed defect

UnicodeEncodeError: 'ascii' codec can't encode character u'\\xe8' in position 15 — at Version 3

Reported by: Alec Thomas Owned by: Christopher Lenz
Priority: normal Milestone: 0.10
Component: general Version: devel
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Alec Thomas)

I'm getting this traceback in my Apache logs every now and then:

[Mon Mar 20 11:22:01 2006] [error] [client 68.142.251.115] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last):
[Mon Mar 20 11:22:01 2006] [error] [client 68.142.251.115] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n    result = object(req)
[Mon Mar 20 11:22:01 2006] [error] [client 68.142.251.115] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 86, in handler\n    gateway.run(dispatch_request)
[Mon Mar 20 11:22:01 2006] [error] [client 68.142.251.115] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/web/wsgi.py", line 87, in run\n    response = application(self.environ, self._start_response)
[Mon Mar 20 11:22:01 2006] [error] [client 68.142.251.115] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 320, in dispatch_request\n    req.send_error(sys.exc_info(), status=500)
[Mon Mar 20 11:22:01 2006] [error] [client 68.142.251.115] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/web/api.py", line 352, in send_error\n    exc_info)
[Mon Mar 20 11:22:01 2006] [error] [client 68.142.251.115] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 283, in dispatch_request\n    dispatcher.dispatch(req)
[Mon Mar 20 11:22:01 2006] [error] [client 68.142.251.115] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 170, in dispatch\n    resp = chosen_handler.process_request(req)
[Mon Mar 20 11:22:01 2006] [error] [client 68.142.251.115] PythonHandler trac.web.modpython_frontend:   File "build/bdist.linux-i686/egg/tractags/web_ui.py", line 59, in process_request
[Mon Mar 20 11:22:01 2006] [error] [client 68.142.251.115] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/wiki/web_ui.py", line 116, in process_request\n    req.write(page.text)
[Mon Mar 20 11:22:01 2006] [error] [client 68.142.251.115] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/web/api.py", line 405, in write\n    self._write(data)
[Mon Mar 20 11:22:01 2006] [error] [client 68.142.251.115] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 78, in _write\n    self.req.write(data)
[Mon Mar 20 11:22:01 2006] [error] [client 68.142.251.115] PythonHandler trac.web.modpython_frontend: UnicodeEncodeError: 'ascii' codec can't encode character u'\\xe8' in position 15: ordinal not in range(128)

Change History (3)

comment:1 by Christian Boos, 18 years ago

0.10dev after the unicode branch has been merged? (i.e. ≥ r3024)

If not, can you try to upgrade?

comment:2 by Alec Thomas, 18 years ago

Yep, pretty sure it was after the unicode merge. I did another update this afternoon, will update the ticket if I see it again.

comment:3 by Alec Thomas, 18 years ago

Description: modified (diff)

I'd have a look myself, but I know exactly zip about character encoding and don't have the time to learn it at the moment :(

Note: See TracTickets for help on using tickets.