How to print a unicode string in PHP
3 answers
Well, you need to understand the difference between server, browser and javascript.
To answer your question "How to print a Unicode string in PHP" is simple: just print it:
echo "László Márton";
But it looks like you want to print a Javascript encoded sequence. OK. But you need to print well-formed javascript.
0
a source to share
try using charset = utf-8 instead of utf8
here's a useful resource for php charset problems: http://www.phpwact.org/php/i18n/charsets
0
a source to share