title: Json encode with accents
body: <p>I have an hidden element that receives a JSON string from a multidimensional array.
  When I try to get this string it returns null because of some accents. The original array is ISO-8859-1. How can I adjust this? It will be parsed with JS to populate a select field.</p>
  
  <p><strong>PHP - data source</strong></p>
  
  <pre><code>$SubjectListChild1 = array(array ('Code' =&gt; 1, 'MainLabel' =&gt; 'Dúvidas sobre o processo'));
  $data = json_encode($SubjectListChild1);
  </code></pre>
  
  <p><strong>JS - getting data</strong></p>
  
  <pre><code>var childSubject = (jQuery('#SubjectListChild').html());
  var obj = jQuery.parseJSON(childSubject);
  </code></pre>