ntelliJ IDEA 的 HTTP Client 工具中发送 HTTP 请求时 返回拉丁编码 iso-8859-1
返回拉丁编码
python 处理方式
text.encode('latin').decode()
java
new String(str.getBytes("ISO-8859-1"), "UTF-8")
php
echo iconv("ISO-8859-1", "UTF-8", implode("", str_split($str)));
自带的出方法
### 获取秘钥
GET {{host}}/service/getApiSecret?method=yczmlsxkzcx&secretKey=wTBpAF9DckB4KssHu922LN5hew2iirho+Sa8k4n1qws=&
UserId=QXZSPJ
.asCharset("GBK")
本文来自博客园,作者:vx_guanchaoguo0,转载请注明原文链接:https://www.cnblogs.com/guanchaoguo/p/17480238.html