How to write Russian characters in array?
<pre><code>while ($row = $result-&gt;fetch_array(MYSQLI_ASSOC)) {
$arr[] = array('answer_id' =&gt; $row['answer_id'], 'answer' =&gt; "Привет!");
}
$result-&gt;close();
echo json_encode($arr);  
</code></pre>

<p>Instead of Russian characters, answer: null. Browser display:  </p>

<pre><code>[Object]  
0: Object  
answer: null  
answer_id: "1010002"  
__proto__: Object  
length: 1  
__proto__: Array[0]
</code></pre>
