Skip to content Skip to sidebar Skip to footer

Python: UnicodeDecodeError: 'utf8'

I'm having problem to save accented letters. I'm using POSTGRESQL and Python 2.7 POSTGRESQL - ENCODING = 'LATIN1' I already added this line but does not worked! #!/usr/bin/pytho

Solution 1:

First thing to check is whether your "accented letters" belong to LATIN1 set - for example, á does, but ś doesn't. If not, you really should use UTF8 encoding in PostgreSQL (it is probably safer anyway).


Post a Comment for "Python: UnicodeDecodeError: 'utf8'"