this is the same problem i m having
but since unicode was made default
eturn self.wrap_app(environ, session_start_response)
  File "/home/mark/work/common/web/application.py", line 272, in wsgi
    self.load(env)
  File "/home/mark/work/common/web/application.py", line 368, in load
    ctx[k] = safeunicode(v)
  File "/home/mark/work/common/web/utils.py", line 231, in safeunicode
    return obj.decode(encoding)
  File "/usr/lib64/python2.5/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9a in position
27: unexpected code byte" while reading response header from upstream,
client: 62.77.119.62, server: youfindr.com, request: "GET /s?
hl=en&q=gynekologie%20vyšetøení%20video&start=16&sa=N HTTP/1.1",

Can you tell me how 2 revert to the older version of webpy where such
errors didnt come?
On Mar 2, 8:08 am, Alex Ksikes <[email protected]> wrote:
> Wouldn't it be easier to specify to web.database the encoding in my
> case it would the default mysql encoding which is latin1? Otherwise
> all my db have to be converted to utf8. I think this is a major source
> or errors and annoyances.
>
> Specifying charset=None works but then I have to explicitly encode
> every field to latin1.
>
> On 02/03/2009, Anand Chitipothu <[email protected]> wrote:
>
>
>
> > > Did you someone fix this issue in the latest version of webpy? I got
> >  > the exact same error and I think this is a pretty serious bug.
>
> >  I don't think it is a bug. This is a problem mismatch in encodings
> >  web.py is expecting the database to be in utf-8 encoding but it is not.
>
> >  Try passing encoding=None to web.database.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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