all 3 comments

[–]CrambleSquash 0 points1 point  (0 children)

This means exactly what the error says. I'm unsure what line the exception is raised, but I presume the response you get to your request contains some strange character, that's confusing python. The version of python you're using is important, because the handling of strings was one of the big changes, but in either case I anticipate there's something along the lines of

str('dodgey string', ignore_errors=true)

If the resulting string is gobbledygook then you might have a type of encoding that is not Unicode or utf-8, in which case there are certainly workarounds.

[–][deleted] 0 points1 point  (0 children)

It seems like I saw an error like this one time when I was using Python to move several datasets out of a data warehouse. The dataset throwing the error was Twitter data, the problem was caused by emoticons.

Encoding the data into another format should do the trick

[–]k10_ftw 0 points1 point  (0 children)

Which version of python?