我创建了虚拟键盘,其中包含特殊符号,如集成符号,pi符号,但在提交表单时,所有虚拟键盘字符都显示为这样的?控制台中的 spring 控制器也看起来像这样? ,在jsp Headers 中,所有我改为UTF-8和项目所有页面都有一个“UTF-8”,数据库也有UTF-8 . 但符号在输入文本中正确显示?我试过像UTF-8这样的设定内容

这是我的 spring 控制器方法

//在提交页面时它会来到这里

@RequestMapping(value = "/PostQueryAction",method = RequestMethod.POST)public String question(@ModelAttribute UserQuestion userQuestion,HttpServletRequest httpServletRequest,ModelMap map,@ RequestParam CommonsMultipartFile file,
HttpSession session)抛出CustomException,Exception {

//这里userquestion是我的getter和setter

HttpSession ses = httpServletRequest.getSession();
     httpServletRequest.setCharacterEncoding("UTF-8")