Cyrillic symbols in a tweet


I use EpiTwitter on php , it works fine , but when $varx have cyrillic symbols

$status=$Twitter->post_statusesUpdate(array(‘status’ => $varx));

api answers

‘error’ => string ‘Could not authenticate with OAuth.’
‘request’ => string ‘/statuses/update.json’

i’ve tryed many variations like urlencode,json_encode on $varx , but it post answers of this functions my file is utf-8 without BOM , also i’ve tryed ansi

what i must to do ?


I’ve seen a few people with issues with EpiTwitter and encoding issues. I’m not sure how to resolve it with that library as it may be over or under encoding UTF-8 values.

At the end of the day, you want your POST body to contain the status as so:


Which means in the OAuth signature base string it needs to be:



i think in two days i tryed all possible variations =D

and yes , i tryed it on tmhTwitter , it works!
but i have not much time to find the difference in requests =)
only one different that i know now is that EPi posts tweet on and TMH posts it on
i’ve tryed to rebuild query url in EPi , but it didnt worked (“Could not authenticate” on every post even not cyrrilic), maybe it cause that i forgot about CURLOPT_SSL_VERIFYPEER.
whatever , thanks for your answer