Unicode File I/O Grief
Dale Strickland-Clark
dale at riverhall.NOTHANKS.co.uk
Thu May 16 16:52:53 EDT 2002
martin at v.loewis.de (Martin v. Loewis) wrote:
>I recommend to do
>
>codecs.open('C:\\odd.txt', 'wb', encoding="utf-8").write(ucString)
>
>or
>
>file('C:\\odd.txt', 'wb').write(ucString.encode("utf-8"))
>
But surely these translate the string before writing it?
I don't want it translated I want to see EXACTLY what's in there as it
stands.
--
Dale Strickland-Clark
Riverhall Systems Ltd
More information about the Python-list
mailing list