[Tutor] Struct and UTF-16

Liam Clarke ml.cyresse at gmail.com
Sun Oct 2 09:05:19 CEST 2005


Hi all,

Just got a bit of confusion with trying to use struct with unicode.

What's the difference between

x = "Hi"
y = x.encode("UTF-16")

and

y = unicode(x, "UTF-16")

Regards,

Liam Clarke


More information about the Tutor mailing list