Use psycopg2 as database driver, just install it and restart your application.
pg8000 has a problem with coding. Em terça-feira, 7 de julho de 2015 18:40:55 UTC-3, icodk escreveu: > > I have a small web2py site that works fine when runs on a Windows 7 > machine. > I move it to a linux machine,and everything worked fine until I try to > save some text to a pg database that includes letters like: æØÅ > > I can insert that type of letters in the database (using pgAdmin3 or > commandline ) and even see it in a browser when web2py read it from the > database but when try to save it from the browser I get the <type > *'exceptions.UnicodeDecodeError'>** 'ascii' codec can't decode byte 0xc3 > in position 248: ordinal not in range(128)* > What am I doing wrong, Or better yet: How can I solve it? > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

