CodeIgniter Forums
Problem with array and cyrillic - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Problem with array and cyrillic (/showthread.php?tid=54583)



Problem with array and cyrillic - El Forum - 09-15-2012

[eluser]Unknown[/eluser]
Hello I have this array
Code:
$set = array(
'text' => 'Текст на кирилица'      
);
and I return the result like this
Code:
echo json_encode($set);
But the result is
Quote:{"text" : null}
But when I change text to 'Latin text' everything is alright...It returns me
Quote:{"text" : "Latin text"}
So my question why the array doesn't allow Cyrillic values and how can I fix this problem?