On Jan 24, 5:22 am, James W <
s031507...@gmail.com> wrote:
> However, I get the error:
>
> ***********************************************************************************
> File "/home/foo/k/kat/BeautifulSoup.py", line 1519, in __init__
> BeautifulStoneSoup.__init__(self, *args, **kwargs)
> File "/home/foo/k/kat/BeautifulSoup.py", line 1144, in __init__
> self._feed(isHTML=isHTML)
> File "/home/foo/k/kat/BeautifulSoup.py", line 1186, in _feed
> SGMLParser.feed(self, markup)
> File "/usr/lib/python2.7/sgmllib.py", line 104, in feed
> self.goahead(0)
> File "/usr/lib/python2.7/sgmllib.py", line 143, in goahead
> k = self.parse_endtag(i)
> File "/usr/lib/python2.7/sgmllib.py", line 320, in parse_endtag
> self.finish_endtag(tag)
> File "/usr/lib/python2.7/sgmllib.py", line 358, in finish_endtag
> method = getattr(self, 'end_' + tag)
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xfa' in
> position 4: ordinal not in range(128)
> ***********************************************************************************