IOS端调用我写的接口Java端得到的数据乱码问题
阿神
阿神 2017-04-17 17:37:22
0
1
483

测试登陆接口:IOS调用我java这边的登陆接口,我这边给返回的是一个Json串,结果发现Json串中的中文乱码,去百度说用new String(str.getByte(),“UTF-8”) 我试过了 发现还是不行 求大神有没有其它的方法?(解决思路两边同时转成UTF-8)

阿神
阿神

闭关修行中......

reply all(1)
刘奇

The fastest way to solve this problem is to use UTF-8 entirely. The return encoding of the response uses UTF-8. IOS (web page) also uses UTF-8. Generally, there will be no problem.
If it doesn’t work, please send your code and I will Let me help you take another look.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template