Problems with struct.pack()
Carsten Haese
carsten at uniqsys.com
Thu Oct 11 12:04:01 EDT 2007
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
More information about the Python-list
mailing list