RSS feed

RE: Warning while parsing

[Date Prev][Date Next] [Thread Prev][Thread Next]

RE: Warning while parsing

Many thanks Arthur! I really appreciate it.
Have a nice day,

Jaroslav Lhoták 
Internet Project Manager - Internet Technology
Radio Free Europe / Radio Liberty Inc.
phone +420-2-2112-2031

-----Original Message-----
From: Arthur de Jong [arthur [at]] 
Sent: Tuesday, November 08, 2011 11:01 PM
To: Jaroslav Lhotak
Subject: Re: Warning while parsing

On Tue, 2011-11-08 at 16:03 +0100, Jaroslav Lhotak wrote: 
> Firstly I’d like to thank for your tool – I started to experimentally 
> use it on our sites (


> And here’s what I’m getting pretty often. Is this something what 
> should concern me – problem of the page or the way you parse it?
> webcheck: Warning: problem parsing page: 'ascii' codec can't decode 
> byte 0xc3 in position 44: ordinal not in range(128) Traceback (most recent 
> call last):
>   File "/usr/share/webcheck/", line 549, in fetch
>     parsermodule.parse(content, self)
>   File "/usr/share/webcheck/parsers/html/", line 121, in parse
>     calltidy.parse(content, link)
>   File "/usr/share/webcheck/parsers/html/", line 35, in parse
>     link.add_pageproblem(parsers.html.htmlunescape(unicode(err)))
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 
> 44: ordinal not in range(128)

The bug here is that the tidy plugin generates an error message that cannot be 
converted to Unicode for some reason, probably because it contains accented 
characters. The error message is related to the part of the page that has the 
links to facebook, twitter, etc.

The link to does not properly escape the title of the page which 
causes some russian text to be parsed as it they were HTML attributes.

I've fixed the tidy issue in the development version:
The change should also be usable for the 1.10.4 version.

-- arthur - - --

To unsubscribe send an email to or see