[issue14251] HTMLParser decode issue

2012-03-12 Thread Ezio Melotti
Ezio Melotti added the comment: I test this again and indeed a bare s.decode() is not enough to fix the problem. The attribute might contain non-ascii characters, and that will result in an error (see for example the "test.py" script attached to #3932). The correct solution is to decode the

[issue14251] HTMLParser decode issue

2012-03-11 Thread rednaks
rednaks added the comment: thank you for giving me a little of your time ! Yes that's what i've tested, i used the html.parser module and and I have no result! -- ___ Python tracker _

[issue14251] HTMLParser decode issue

2012-03-11 Thread Ezio Melotti
Ezio Melotti added the comment: I don't think the patch can be applied as is -- in order to work s should be an ascii-only str. I will look at this again as soon as I have some time and see if something can be done. FTR the Python 3 doc for html.parser can be found here: http://docs.python.

[issue14251] HTMLParser decode issue

2012-03-11 Thread rednaks
rednaks added the comment: So we cant make decode by default ? ! Concerning python 3, it seems that it's not reading tags and attributes, i didn't get any error, but i don't have any result the example i used is there : http://docs.python.org/library/htmlparser.html#module-HTMLParser Of co

[issue14251] HTMLParser decode issue

2012-03-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo title: [PATCH]HTMLParser decode issue -> HTMLParser decode issue ___ Python tracker ___ ___