UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)

John Nagle nagle at animats.com
Thu Jul 16 09:26:18 CEST 2009


akhil1988 wrote:
> Sorry, it is sgmllib.py and not sgmmlib.py

    Oh, that bug again.  See

	http://bugs.python.org/issue1651995

It's a bug in SGMLParser.  When Python 2.5 restricted ASCII to 0..127,
SGMLParser needed to be modified, but wasn't.

I reported that bug in February 2007.  It was fixed in
Python 2.6 and 3.0 on March 31, 2009.

					John Nagle



More information about the Python-list mailing list