First of all, my code is UTF8, I have tried various transcoding functions iconv_get_encoding iconv mb_convert_encoding
Also the same is garbled ... Ask you greatly, this is very easy for you man-in-God, how to deal with??? Nutation
Incidentally, it doesn't matter if you don't want to answer, I'll find it myself but ask a little bit faster ^_^
At the beginning of the iOS app, you'll perform
Func application (application:uiapplication, didreceiveremotenotification userInfo: [Nsobject:anyobject])
What if I quit (the app is executed in the background) and then open the app? I remember the last time I wrote it, but for a moment I forgot, please advise ... Thank....
Reply content:
First of all, my code is UTF8, I have tried various transcoding functions iconv_get_encoding iconv mb_convert_encoding
Also the same is garbled ... Ask you greatly, this is very easy for you man-in-God, how to deal with??? Nutation
Incidentally, it doesn't matter if you don't want to answer, I'll find it myself but ask a little bit faster ^_^
At the beginning of the iOS app, you'll perform
Func application (application:uiapplication, didreceiveremotenotification userInfo: [Nsobject:anyobject])
What if I quit (the app is executed in the background) and then open the app? I remember the last time I wrote it, but for a moment I forgot, please advise ... Thank....
As long as you add a urlencode before the text string, add UrlDecode after the JSON.
Cases
$arr = UrlEncode (Array (' a ' = ' "Little Gray Wolf ')");
Echo UrlDecode (Json_encode ($arr));
php
The json_encode
second parameter JSON_UNESCAPED_UNICODE
to avoid the unicode
character being diverted.
First it's not garbled, it's Unicode encoding.
PHP Json_encode will default to convert Chinese to Unicode encoding. If not, add a second parameter Json_unescaped_unicode
"张飞"),JSON_UNESCAPED_UNICODE);