美文网首页
unicode转中文

unicode转中文

作者: Mylovesunshine | 来源:发表于2024-02-19 13:24 被阅读0次

HttpClient 发送post请求,返回的JSON转成字符串,中文为unicode编码“\u8eab\u4efd\u8bc1\u53f7\u7801\u4e0d\u5408\u6cd5”

借用fastjson的parseObject方法,解析成json再转为字符串

content = JSONObject.parseObject(content).toJSONString();

相关文章

网友评论

      本文标题:unicode转中文

      本文链接:https://www.haomeiwen.com/subject/eyrvadtx.html