title: Updating Twitter Status: Character Escaping and URLs
body: <p>I pass text from a POST variable from a form on my site to Twitter and I save this message on my own site. When I view the entry on my site it is absoultly fine. However, in some cases when there is an apostrophe in the message twitter updates the status of a user but escapes the apostrophes and this can be seen on the users status!</p>
  
  <p>This doesn't happen when I update my twitter status on the twitter site. So I am wondering is there a way I need to pass text to twitter?</p>
  
  <p>I currently do this and I make use of this awesome Twitter class. <a href="http://github.com/jmathai/twitter-async/tree" rel="nofollow noreferrer">http://github.com/jmathai/twitter-async/tree</a></p>
  
  <pre><code>$success = $twitterObj-&gt;post_statusesUpdate(array('status' =&gt; $_POST['message'].$URL.$key));
  </code></pre>
  
  <p>In addition, passing URLs to twitter use to automatically link the URL but now this just appears as text?</p>
  
  <p>Has twitter made changes in the past month that would cause the above to happen? If not how can I overcome this?</p>
  
  <p>Thanks all</p>
  
  <h2>EDIT</h2>
  
  <p>More Code:</p>
  
  <pre><code>function tweetit(){
      global $URL;
      global $key;
  
      include './twitter/EpiCurl.php';
      include './twitter/EpiOAuth.php';
      include './twitter/EpiTwitter.php';
  
      $consumer_key = 'hidden';
      $consumer_secret = 'hidden';
  
      $twitterObj = new EpiTwitter($consumer_key, $consumer_secret);
  
      $twitterObj-&gt;setToken($_SESSION['oauth_token'], $_SESSION['oauth_token_secret']);
  
      $success = $twitterObj-&gt;post_statusesUpdate(array('status' =&gt;  $_POST['message'].' '.$URL.$key));
  
      return $success-&gt;response['id']; 
  }
  </code></pre>