On Apr 1, 3:43 pm, "Aaron Swartz" <[EMAIL PROTECTED]> wrote:
> > for r in res:
> > print r.first_name
>
> This is actually not a web.py bug. web.py is correctly returning the
> Unicode values, it's just that Python doesn't think your screen can
> support them and crashes.
>
> One thing you can try is to add a file sitecustomize.py in your
> site-packages directory that reads:
>
> import sys
> sys.setdefaultencoding('utf-8')
This solution works - Thank you very much!
Beforehand I had to comment out line 270 in db.py (only in 0.23 - 0.22
works as well as 0.3)
#psycopg2.extensions.register_type(psycopg2.extensions.UNICODE)
>
> I've asked Guido to try to fix this by default but I suspect it won't
> be done until Python 3000.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---