新浪JAVA API返回的JSON数据里面中文乱码_百度知道
最佳答案: 这是unicode编码,不是乱码,你进行Unicode转码就出来了 给你写个方法转码,将unicode传递进去返回字符串 public String convert(String utfString){String...更多关于Java使用百度API store返回JSON数据为unicode编码,怎么转化为中文?的问题>>
Java使用百度API store返回JSON数据为unicode编码,怎么转化为中文
最佳答案: String str = "\u8eab\u4efd\u8bc1\u53f7\u7801\u4e0d\u5408\u6cd5!"; byte[] bt = str.getBytes("utf-8"); String ret = new String(...更多关于Java使用百度API store返回JSON数据为unicode编码,怎么转化为中文?的问题>>