hayesdavis / grackle

Lightweight Ruby library for the Twitter API that goes with the flow.
228 stars 36 forks source link

update_with_media! doesn't work when status is in UTF-8 #31

Open sashazykov opened 10 years ago

sashazykov commented 10 years ago

It works only if status doesn't contain UTF-8 characters.

Grackle::TwitterError => Unexpected failure making request: incompatible character encodings: UTF-8 and ASCII-8BIT

ruby-1.9.3-p448/gems/grackle-0.3.0/lib/grackle/client.rb:266:in `rescue in send_request'
ruby-1.9.3-p448/gems/grackle-0.3.0/lib/grackle/client.rb:254:in `send_request'
ruby-1.9.3-p448/gems/grackle-0.3.0/lib/grackle/client.rb:247:in `call_with_format'
sashazykov commented 10 years ago

Utf-8 works if I send request without file.