not quite 1252
Richard Brodie
R.Brodie at rl.ac.uk
Fri Apr 28 08:19:08 EDT 2006
"Anton Vredegoor" <anton.vredegoor at gmail.com> wrote in message
news:4451f9e9$1 at usenet.zapto.org...
> Yes my header also says UTF-8. However some kind person send me an e-mail stating that
> since I am getting \x94 and such output when using repr (even if str is giving correct
> output) there could be some problem with the XML-file not being completely UTF-8. Or is
> there some other reason I'm getting these \x94 codes?
Well that rather depends on what you are doing. If you take utf-8, decode
it to Unicode, then re-encode it as cp1252 you'll possibly get \x94. OTOH,
if you see '\x94' in a Unicode string, something is wrong somewhere.
More information about the Python-list
mailing list