Doesn't seem to be fixed in 8.04 Hardy. Instead, Hardy has only older
version of python2.5 (2.5.2-2ubuntu4.1). Will this be fixed on Hardy at
all?
When using Beautiful Soup to read web page in Finnish, I get:
"UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in
position 5: ordinal not in range(128)"
My /usr/lib/python2.5/sgmllib.py incorrectlly compares to 255 (and not
the correct 127):
def handle_charref(self, name):
# ...
if not 0 <= n <= 255:
return
I'm using Ubuntu 8.04.2 hardy (cat /etc/lsb-release) and python2.5
2.5.2-2ubuntu4.1 (dpkg --list python2.5).
--
Python2.5 Unicode-bug when using sgmllib.py: UnicodeDecodeError
https://bugs.launchpad.net/bugs/240929
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs