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
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