title: problem with json data(Arabic characters) that encoded with utf8_encode of PHP in javascript
body: <p>I want to send json data(Arabic characters) that encoded  with utf8_encode of PHP:</p>
  
  <pre><code>&lt;?php
    $output = utf8_encode('مثال');/*Arabic characters*/
    echo json_encode($output);
  ?&gt;
  </code></pre>
  
  <p>in javascript file of page :</p>
  
  <pre><code>.
  .
  .
  const response = JSON.parse(xhr.responseText);
  const div1 = document.getElementById("div1");
  div1.textContent = response ;/*show ÙØ«Ø§Ù*/
  .
  .
  .
  </code></pre>
  
  <p>why response value is 'ÙØ«Ø§Ù'?</p>