When I open the URL and read it, I cannot recognize it. But when I check the content header, it says that it is encoded as utf-8. So I tried converting it to unicode, and it complained about UnicodeDecodeError: the ascii codec cannot decode the 0x8b byte at position 1: the serial number is not in the range (128) using unicode ().
.encode ("utf-8") produces a UnicodeDecodeError: codec 'ascii' cannot decode byte 0x8b at position 1: serial number not in range (128)
.decode ("utf-8") produced by UnicodeDecodeError: codec "utf8" cannot decode byte 0x8b at position 1: invalid start byte.
I tried everything I could think of (I'm not so good at encodings)
I would be glad if I could make it work. Thanks.
thabubble
source share