Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.2k views
in Technique[技术] by (71.8m points)

如图:node服务转发请求携带中文,后端接收到的是乱码,这个怎么解决?

如图:自己打印发送的信息控制台显示的是中午,但是到了JAVA后台就显示乱码了。这个咋搞? node是用的eggs框架

image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

这是发送方和接收端用了不同的编码/解码方式导致的,看一下java端是不是用utf-8来解码


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...