converting u'11\xa022' to '11\xa022'

alf ask at me
Tue Feb 20 22:31:32 EST 2007


Jean-Paul Calderone wrote:
>  u'11\xa022'.encode('charmap')

thx a lot. one more question, once a unicode object is created e.g.

u=unicode('hello', 'iso-8859-1')

is there any way to find:
	1-original encoding of u
	2-list of supported encodings?

A.



More information about the Python-list mailing list