PDA

View Full Version : Problem with LZW decoding


UnrealEd
09-18-06, 12:16 PM
hi, back with a question: how can i transform a utf-8 character to an integer?
this is what i have:
a = unichr(275).encode('utf8')
print ord(a)
when i test this i get an error. so how do i get the correct integer (275) back?

Greetz,
UnrealEd