UnicodeDecodeError using BeautifulSoup
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa3 in position 0: ordinal not in range(128)
There’s a rather annoying bug in python 2.5’s sgmllib.py which is the cause.
The function convert_charref assumes that ascii characters have values up to 255; the correct limit is 127.