dmaclean / dfs-python

Tools for DFS data collection and projection creation.
11 stars 2 forks source link

basketball.py throwing errors when parsing any BBR page. #22

Closed dmaclean closed 10 years ago

dmaclean commented 10 years ago

The following error keeps showing up, regardless of which page is being parsed: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 205: ordinal not in range(128)

Looks like we're expecting ascii and getting UTF-8.

dmaclean commented 10 years ago

Fixed. Parsed out the charset value from the content-type HTTP header (which is UTF-8) and set the encoding to UTF-8 during the reading of the response contents.

Files modified: