Cyrillic characters in tweets
I use EpiTwitter, it works fine, but when $ varx have Cyrillic characters
$varx="";
$status=$Twitter->post_statusesUpdate(array('status' => $varx));
api answers
'error' => string 'Could not authenticate with OAuth.'
'request' => string '/statuses/update.json'
I tried a lot of variations like urlencode, json_encode on $ varx, but posted answers to these functions my utf-8 file without specification, also I tried ansi
any ideas?
Artem, I think the problem is not in Cyrillic characters. Have you registered your application on twitter (http://twitter.com/oauth_clients)? You will receive a consumer key and a consumer secret. Then define it in your php application:
define('TWITTER_CONSUMER_KEY', 'your_consumer_key');
define('TWITTER_CONSUMER_SECRET', 'your_consumer_secret');
More here