Newbie question about text encoding

Laura Creighton lac at openend.se
Tue Feb 24 09:55:41 EST 2015


In a message of Tue, 24 Feb 2015 06:25:24 -0500, Dave Angel writes:
>But utf-8 does not seem to be the right encoding for that bytestring. 
>So you'll need a form like:
>     mystring = rec.decode(encoding='xxx')
>
>for some value of xxx.

>DaveA

And the xxx you want is "latin1"

Laura




More information about the Python-list mailing list