开发者

Android and PHP : JSON and special characters like è

开发者 https://www.devze.com 2023-04-05 00:24 出处:网络
With my php page I read into an mys开发者_运维问答ql database. The String is in UTF-8 format but if it contain one special character like as è,à,ù the json_encode pass null. How can I do ??use adds

With my php page I read into an mys开发者_运维问答ql database. The String is in UTF-8 format but if it contain one special character like as è,à,ù the json_encode pass null. How can I do ??


use addslashes() function in php, it may work

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号