Writing UTF-8 string to UNICODE file

Michael Weir mweir at transres.com
Tue Nov 11 12:44:31 EST 2003


I'm sure this is a very simple thing to do, once you know how to do it, but
I am having no fun at all trying to write utf-8 strings to a unicode file.
Does anyone have a couple of lines of code that
- opens a file appropriately for output
- writes to this file
Thanks very much.
Michael Weir






More information about the Python-list mailing list