title: Php encode characters for telegram bot
body: <p>Hy, i have this php code for telegram bot: </p>
  
  <pre><code>  header("Content-Type: application/json");
      $parameters = array('chat_id' =&gt; $chatId,  "text" =&gt; ''  .$temp.'&amp;deg;C');
      $parameters["method"] = "sendMessage";
      echo json_encode($parameters);
  </code></pre>
  
  <p>The problem is the encode of output, this will be &amp; deg;C, i need °C.
  <br>If I use °, the code not work.</p>