[EMAIL PROTECTED] wrote: > 'K\xc3\xb6ni'.decode('utf-8') # 'K\xc3\xb6ni' should be 'König', > contains a german 'umlaut' > > but failed since python assumes every string to decode to be ASCII?
No, Python would assume the string to be utf-8 encoded in this case: >>> 'K\xc3\xb6ni'.decode('utf-8').encode('latin1') 'K\xf6ni' Your code must have failed somewhere else. Try posting actual failing code and actual traceback. -- http://mail.python.org/mailman/listinfo/python-list