Hi,
I have this code:
list =
def func(list):
... for e in list:
... e = re.sub(' ?&# x([0-9a-f]*);',r'\x\1',e)
... print type(e)
... e = unicode(e,'iso-8859-1')
... print type(e)
... print e
I get this output:
12 angry men
Rash\xf4mon
whereas I wanted the output to be:
12 angry men
Rasho'mon (o' is like spanish o with some accent like character above it)
Can someone help me?
PS: I tried this on python interactive shell (of PythonWin). python version 2.6