Hey,
Is it possible that the API response have a wrong encoding type?
r = RestClient.get "#{baseURL}/3/account/#{userId}/movie_watchlist?api_key=#{apiKey}&session_id=#{sessionId}", header p r.body.encoding #Encoding:US-ASCII /usr/local/lib/ruby/2.1/json/common.rb:155:in `encode': "\xC3" on US-ASCII (Encoding::InvalidByteSequenceError)$
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on April 20, 2015 at 2:27 PM
Hey l33tname,
I don't think so. Looks like something local in your env:
However, I have seen the odd invalid character get saved to a field. Since you can inspect your response, you can probably see where the deserialization is having an issue. With that in hand, I can see if there's something weird on that one field.
Reply by Sir l33tname
on April 21, 2015 at 2:28 PM
Ups your right for some weird reason my environment was set to ASCII. So changing that to utf-8 an everything works fine.