Hi guys,

I am trying to use some Chinese characters as GET() 's parameters, but
I got a UnicodeDecodeError.
What can I do to make it work?
Thanks.


The trace back goes like this:


Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/web/wsgiserver/__init__.py",
line 987, in communicate
    req.respond()
  File "/usr/lib/python2.4/site-packages/web/wsgiserver/__init__.py",
line 543, in respond
    self._respond()
  File "/usr/lib/python2.4/site-packages/web/wsgiserver/__init__.py",
line 555, in _respond
    response = self.wsgi_app(self.environ, self.start_response)
  File "/usr/lib/python2.4/site-packages/web/httpserver.py", line 200,
in __call__
    return self.app(environ, xstart_response)
  File "/usr/lib/python2.4/site-packages/web/application.py", line
224, in wsgi
    start_resp(status, headers)
  File "/usr/lib/python2.4/site-packages/web/httpserver.py", line 193,
in xstart_response
    self.log(status, environ)
  File "/usr/lib/python2.4/site-packages/web/httpserver.py", line 215,
in log
    print >> outfile, msg.encode('utf-8')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position
71: ordinal not in range(128)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to