【问题标题】:my ojet application does not work in mozilla firefox or internet explorer我的 ojet 应用程序在 Mozilla Firefox 或 Internet Explorer 中无法运行
【发布时间】:2020-05-25 18:03:56
【问题描述】:
我的 ojet 应用程序在 mozilla firefox 或 Internet Explorer 中无法运行。它在 Mozillas 控制台中显示:
未声明纯文本文档的字符编码。如果文档包含 US-ASCII 范围之外的字符,则文档将在某些浏览器配置中呈现乱码。文件的字符编码需要在传输协议中声明或者文件需要使用字节顺序标记作为编码签名。本地主机:8443
【问题讨论】:
标签:
javascript
java
spring-boot
spring-mvc
【解决方案1】:
尝试通过在视图页面(即 html 文件)中指定编码类型来添加以下标签。更多信息请参考this thread。
<meta http-equiv="content-type" content="text/html; charset=utf-8" />