post_stat...">

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?

+5
source share
2 answers

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

+2
source

, , , . EpiTwitter, ,

0

All Articles