Just running that in Python I get an error.
>>("Número de serie: "+"100").decode("utf8").encode("latin1")
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfa in position 1:
invalid start byte
I noticed that first line:
#coding: utf8
ú - this is a latin1 character, so you have an invalid p
You have data in the database that is binary but not unicode. What do you
want to do with it? You cannot decode('utf8'). Perhaps they already in
latin1?
On Thursday, 11 October 2012 06:47:35 UTC-5, Manu Mora wrote:
>
> Hello.
> I have a problem with code and decode chars. This is my code:
>
> #
2 matches
Mail list logo