title: How to decode json array to utf-8?
body: <p>I want to run this code block :</p>
  
  <pre><code>&gt;&gt;&gt; json1 = json.loads("""[{"categoryId":"32","nameAr":"\u0627\u0643\u0644 \u0633\u0631\u064a\u0639","nameEn":"Fast Food"}]""")
  &gt;&gt;&gt; file1 = open("test.csv","w")
  &gt;&gt;&gt; fieldnames = json1[0].keys()
  &gt;&gt;&gt; writer = csv.DictWriter(file1, fieldnames=fieldnames)
  &gt;&gt;&gt; writer.writeheader()
  &gt;&gt;&gt; writer.writerow(json1[0])
  </code></pre>
  
  <p>but I get this error :'ascii' codec can't encode characters in position 0-2, I think this happened because I should encode json1 values to utf-8 , How could I do that ?</p>