Page 2 of 2

Re: Trouble with Twitter

Posted: Wed 02 May 2012 11:02 pm
by beteljuice
Might be a step or two more awkward:

Here's a response to someone who wanted to tweet in arabic:
This is likely failing due to an encoding error. Make sure that:

the Arabic is being posted as UTF-8 content.

When POSTing, it's best that "الخيال اهلا وسهلا بكم في عالم" gets sent as "%D8%A7%D9%84%D8%AE%D9%8A%D8%A7%D9%84%20%D8%A7%D9%87%D9%84%D8%A7%20%D9%88%D8%B3%D9%87%D9%84%D8%A7%20%D8%A8%D9%83%D9%85%20%D9%81%D9%8A%20%D8%B9%D8%A7%D9%84%D9%85"

The OAuth signature base string needs to then have that escaped again: "%25D8%25A7%25D9%2584%25D8%25AE%25D9%258A%25D8%25A7%25D9%2584%2520%25D8%25A7%25D9%2587%25D9%2584%25D8%25A7%2520%25D9%2588%25D8%25B3%25D9%2587%25D9%2584%25D8%25A7%2520%25D8%25A8%25D9%2583%25D9%2585%2520%25D9%2581%25D9%258A%2520%25D8%25B9%25D8%25A7%25D9%2584%25D9%2585"
Not quite sure how the tweeter would know what to put in thier custom txt file.

Re: Trouble with Twitter

Posted: Thu 03 May 2012 6:50 am
by steve
beteljuice wrote:Not quite sure how the tweeter would know what to put in thier custom txt file.
I don't think there's anything that would work; Cumulus has to do the encoding.

Re: Trouble with Twitter

Posted: Thu 03 May 2012 7:44 am
by steve
I tried encoding the string as UTF-8 and it still doesn't work, so something 'lower down' is probably converting it back again. So I give up; Twitter is more trouble than it's worth.