與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