如何在Twitter上发送特殊字符?

时间:2012-07-07 05:48:36

标签: php twitter character-encoding

我正在使用Twitter API并开发脚本。我面临着人物问题。我对Twitter API没有任何问题。

我想在Twitter和我的代码上发送'Ö'字符:

 <?php
ob_start();
session_start();
    include 'lib/EpiCurl.php';
    include 'lib/EpiOAuth.php';
    include 'lib/EpiTwitter.php';
    include 'lib/secret.php';

$twitterObj     = new EpiTwitter($consumer_key, $consumer_secret);
$authtoken          = "";
$authtokens     = "";
$twitterObj->setToken($authtoken, $authtokens);
$twitterInfo        = $twitterObj->get_accountVerify_credentials();
 $isim              = $twitterInfo->name;
 $username          = $twitterInfo->screen_name;
 $resim         = $twitterInfo->profile_image_url;
 $takipci           = $twitterInfo->followers_count;
 $tweetsayi        = $twitterInfo->statuses_count;
 $twid              = $twitterInfo->id_str;
 $desc          = $twitterInfo->description;
 $mesaj         = "Ömer";
 $mesaj         = iconv("ISO-8859-1", "UTF-8", $mesaj);
 $status        = $twitterObj->post_statusesUpdate(array('status' => $mesaj));
 $status->response;
?>

我无法向Twitter发送消息

0 个答案:

没有答案