前端传数据到后端,中文乱码

前端代码:

encodeURI(encodeURI(currentPoint))

后端代码:

  1. currentPoint = java.net.URLDecoder.decode(currentPoint, "UTF-8");
  2. currentPoint = java.net.URLDecoder.decode(currentPoint, "UTF-8");
posted on 2020-08-19 09:20  云淡风轻博客  阅读(3111)  评论(0)    收藏  举报