2015-08-27 40 views
0

我在Twitter上發佈了PHP腳本,迄今爲止所有工作都正確,只有信息發佈了重音問題時纔出現問題。使用PHP在Twitter上發佈時遇到的問題的重要性

的 「動作類」 這個詞是這樣的:敖

我試圖用這個:

<?php header("Content-Type: text/html; charset=ISO-8859-1",true) ?> 
<html> 
<head> 
<title></title> 
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" /> 
</head> 

我試過UTF-8也沒有解決。有誰知道如何解決這一問題?

我的代碼:

$title_news = "Ação"; 
$slug = "http://www.sitetest.com/my-title"; 

$result = $title_news." ".$slug; 

require_once 'twitteroauth.php'; 

define("CONSUMER_KEY", ""); 
define("CONSUMER_SECRET", ""); 
define("OAUTH_TOKEN", ""); 
define("OAUTH_SECRET", ""); 

$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_SECRET); 
$content = $connection->get('account/verify_credentials'); 
$connection->post('statuses/update', array('status' => $result)); 

回答