How do I get jscon_encode to work with multibyte characters?
3 answers
The attribute value is title
not considered JavaScript. Use json_encode
only to convert PHP type to JavaScript / JSON expression.
Try this instead:
echo '<a title="ζζΆι΄ε
εθΏθ‘ζεΊ">test</a>';
But you need to send your document with the same encoding as the header text.
+2
source to share