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)$
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة Travis Bell
بتاريخ أبريل 20, 2015 في 2:27 مساءا
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.
رد بواسطة Sir l33tname
بتاريخ أبريل 21, 2015 في 2:28 مساءا
Ups your right for some weird reason my environment was set to ASCII. So changing that to utf-8 an everything works fine.