title: Removing the "\ufeff" from the end of object -> content in Google+ API json result
body: <p>The result from the Google+ API has <code>\ufeff</code> appended to the end of every "content" result (I don't really know why?)</p>
  
  <p>What is the best way to remove this unicode character from the json result? It is producing a <code>'?'</code> in some of the output I am displaying.</p>
  
  <p>Example: </p>
  
  <pre><code>https://developers.google.com/+/api/latest/activities/get#try-it 
  </code></pre>
  
  <p>enter activity id </p>
  
  <pre><code>z12pvrsoaxqlw5imi22sdd35jwvkglj5204
  </code></pre>
  
  <p>and click Execute, result will be:</p>
  
  <pre><code>{
   .....
   "object": {
    ......
    "content": "CONTENT OF GOOGLE PLUS POST HERE \ufeff",
    ......
  </code></pre>
  
  <p>example PHP code which shows a '?' where the '\ufeff' is:</p>
  
  <pre><code>&lt;?php
  $data = json_decode($result_from_google_plus_api, true);
  echo $data['object']['content'];
  // outputs "CONTENT OF GOOGLE PLUS POST HERE ?"
  echo trim($data['object']['content']);
  // outputs "CONTENT OF GOOGLE PLUS POST HERE ?"
  </code></pre>
  
  <p>Or am I going about this the wrong way? Should I be fixing the '?' issue rather than trying to remove the <code>'\ufeff'</code>?</p>