Re: smart quotes

2008-08-26 Thread Adrian Smith
On Aug 26, 4:13 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > Adrian Smith wrote: > > Can anyone tell me how to get rid of smart quotes in html using > > Python? I've tried variations on > > stuff = string.replace(stuff, "\“", "\""), but to no avail, presumably > > because they're not standard ASCII

Re: smart quotes

2008-08-26 Thread Peter Otten
Adrian Smith wrote: > Can anyone tell me how to get rid of smart quotes in html using > Python? I've tried variations on > stuff = string.replace(stuff, "\“", "\""), but to no avail, presumably > because they're not standard ASCII. Convert the string to unicode. For that you have to know its enco