On 2007-02-06, Robert Kern <[EMAIL PROTECTED]> wrote:
> John Nagle wrote:
>> File "D:\projects\sitetruth\InfoSitePage.py", line 285, in httpfetch
>> sitetext = sitetext.encode('ascii','replace') # force to clean ASCII
>>
>> UnicodeDecodeError: 'ascii' codec can't decode byte 0x92 in
>> pos
John Nagle wrote:
> I'm trying to clean up a bad ASCII string, one read from a
> web page that is supposedly in the ASCII character set but has some
> characters above 127. And I get this:
>
> File "D:\projects\sitetruth\InfoSitePage.py", line 285, in httpfetch
> sitetext = sitetext.en
I'm trying to clean up a bad ASCII string, one read from a
web page that is supposedly in the ASCII character set but has some
characters above 127. And I get this:
File "D:\projects\sitetruth\InfoSitePage.py", line 285, in httpfetch
sitetext = sitetext.encode('ascii','replace') # for