-
我在发送请求前添加了"Charset", "UTF-8"和"Content-Type", "application/json;charset=utf-8"请求头字段,但是QQ群中接收到的中文消息依旧是乱码,而“被动消息”回复的中文没有乱码,这是什么原因? |
Beta Was this translation helpful? Give feedback.
Answered by
360736293
May 20, 2022
Replies: 1 comment
-
我解决了这个问题,发送请求的编码格式没问题,但是输出的编码格式有问题 ,我用OutputStreamWriter代替了PrintWriter |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
360736293
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我解决了这个问题,发送请求的编码格式没问题,但是输出的编码格式有问题 ,我用OutputStreamWriter代替了PrintWriter