This question already has an answer here:
- JSON output accents issue 1 answer
I have the fallowing Cyrillic string i want to return in my ajax response : 'Този еmail е вече регистриран'.
How ever when i do this:
<?php
public function echoCyrllic(){
$json['error']='Този еmail е вече регистриран';
echo json_encode($json);
}
?>
My response is this:
{"error":"\u0422\u043e\u0437\u0438 \u0435mail \u0435 \u0432\u0435\u0447\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0430\u043d"}
Can anybody help. Thanks.
</div>