On Thu, 2007-10-11 at 10:45 -0500, Robert Dailey wrote: > What if 'mystring' has been encoded to "utf-8"? > > mystring = u"Hello World" > mystring = mystring.encode( "utf-8" ) > > So far the code above doesn't seem to work with this.
Why would you encode the string into UTF-8? Didn't you say that your output file has to be encoded in UTF-16? -- Carsten Haese http://informixdb.sourceforge.net -- http://mail.python.org/mailman/listinfo/python-list