与Thymeleaf一起使用Spring时,我的西里尔文字符在页面上显示为?????
。utf8与Thymeleaf的字符集
使用
@RequestMapping(value = "/login", method = RequestMethod.GET, produces = "text/html; charset=utf-8")
,因为它是这里建议:https://stackoverflow.com/a/11866822/1479414这里:https://stackoverflow.com/a/12023816/1479414没有帮助。
如何解决这个问题?
你错了,当页面有静态文本和文件是'UTF-8'编码这不会解决问题。 – Andremoniy
@Andremoniy什么可以解决这个问题? –
https://stackoverflow.com/a/36397227/1479414 – Andremoniy