Quote:
Originally Posted by At_Libitum
Hi,
well, maybe not exactly unicode, more like accented characters, so utf-8 at a minimum
I'm hitting the a wall, I need to find a function that converts this
Götterdämmerung
into this
G\xf6tterd\xe4mmerung
I've been all over the source but cannot find how it's done in python....
|
0xF6 for ö and 0xE4 for ä looks like iso-8859-1 (ISO Latin-1). In which case, going from a unicode string, you want
.encode("iso-8859-1")