title: How to save a JSON as unescaped UTF-8 in PHP 5.3?
body: <p>I created a JSON file:</p>
  
  <pre><code>$json = array(
      "Sample" =&gt;array(
          "context" =&gt; $context,
          "date"    =&gt; $date
      )
  );
  
  $url= "sample.json";
  $myfile = fopen($url, "w") or die("Unable to open file!");
  fwrite($myfile, json_encode($json));    
  fclose($myfile);
  </code></pre>
  
  <p>I need to save it as UTF-8 and I can't use <code>JSON_UNESCAPED_UNICODE</code> in PHP 5.3. So what should I do now?</p>