• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with array and cyrillic

#1
[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?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.