Re: [Tutor] accented characters to unaccented

2010-06-08 Thread Peter Otten
KB SU wrote: > Hi, > > I have open url and read like following: > > $import urllib > $txt = urllib.urlopen("http://www.terme-catez.si";).read() > $txt > If you see above, in junk of HTLM, there is text like 'Terme > \xc4\x8cate\xc5\xbe' (original is 'Terme Čatež'). Now, I want to convert > cod

[Tutor] accented characters to unaccented

2010-06-07 Thread KB SU
Hi, I have open url and read like following: $import urllib $txt = urllib.urlopen("http://www.terme-catez.si";).read() $txt Gives output like below: other parts are skipped --- r\n 2010\r\n http://www.terme-catez.si"; target="_blank">Terme \xc4\x8cate\xc5\xbe\r\n Slovenija\r\