Re: Converting html character codes to utf-8 text

2012-06-19 Thread Peter Otten
Johann Spies wrote: > I am trying the following: > > Change data like this: > > Bien Donné : agri tourism > > to this: > > Bien Donné agri tourism > > I am using the 'unescape' function published on > http://effbot.org/zone/re-sub.htm#unescape-html but working through a file > I get the follo

Converting html character codes to utf-8 text

2012-06-19 Thread Johann Spies
I am trying the following: Change data like this: Bien Donné : agri tourism to this: Bien Donné agri tourism I am using the 'unescape' function published on http://effbot.org/zone/re-sub.htm#unescape-html but working through a file I get the following error: UnicodeDecodeError: 'ascii' codec