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
bquimby1@icloud.com