json_encode fails on double byte UTF-8

Bruce R Quimby <[email protected]>
Newsgroups gmane.comp.php.general
Message-ID <[email protected]>
I just got back from a trip to Switzerland and found that json_encode() is not handling 2-byte UTF-8.  The ü in  Zürich causes json_encode to fail.  ü is a legitimate UTF-8 double byte character.  If I run the string through mb_convert_encoding($str,"UTF-8","UTF-8”) the character will be converted to a ‘?’ and json_encode will succeed.   Any help is appreciated.

Bruce Quimby
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.