Score
0
Watch 727 Star 1.7K Fork 733

GVPsd4324530 / fastweixinJavaApache-2.0

springmvc 整合中文乱码问题

Open
Irving  Opened this issue

请问一下,我这边springmvc 消息中文乱码,看了下源码 处理请求的方法 WeixinControllerSupport.java,不设置response设置编码UTF-8,不会产生乱码问题吗?

   @RequestMapping(method = RequestMethod.POST)
    @ResponseBody
    protected final String process(HttpServletRequest request)
84726_irving_1578916851 95211_clhey_1578917256 total 3 participants

Comments (3)

84726_irving_1578916851
Irving 2015-06-28 18:04

刚看见有人推送了PR了啊,!4:修复@ResponseBody导致的中文乱码问题 这么木有合并掉啊

谁说谁是谁的灰 2015-09-08 01:15
   @RequestMapping(method = RequestMethod.POST,produces = "application/xml;charset=UTF-8")
    @ResponseBody
    protected final String process(HttpServletRequest request)

我感觉这样更好

95211_clhey_1578917256
查理 2015-10-10 15:12

是哦,在springmvc里面遇到了,这个怎么处理的?

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
Java
1
https://gitee.com/pyinjava/fastweixin.git
git@gitee.com:pyinjava/fastweixin.git
pyinjava
fastweixin
fastweixin

Help Search