警告:在有人去并将其标记为重复之前this,请理解事实并非如此。接受的答案正是我正在做的,但我面临以下问题。
客户端文件夹中的 HTML 文件如下所示:
<head>
<meta charset="utf-8"/>
<title>blah-blah</title>
---
我在 Firebug 控制台中收到的消息是:
The character encoding declaration of the HTML document
was not found when prescanning the first 1024 bytes of
the file. When viewed in a differently-configured browser,
this page will reload automatically. The encoding
declaration needs to be moved to be within the first
1024 bytes of the file.
当我查看源代码时,在 head 和元字符集元素之间,我看到一大堆链接样式表和脚本标记。
如果我删除元字符集,我会在 firebug 控制台中看到以下内容:
The character encoding of the HTML document was not
declared. The document will render with garbled text
in some browser configurations if the document
contains characters from outside the US-ASCII range.
The character encoding of the page must to be declared
in the document or in the transfer protocol.
如何让元字符集标签出现在头部之后?
我所做的是编辑/usr/lib/meteor/app/lib/app.html.in
,并添加元字符集行,使文件现在看起来像这样:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/> //**Added this line**
{{#each stylesheets}} <link rel="stylesheet" href="{{this}}">
{{/each}}
...
当然,我从 html 文件中删除了元字符集行。
我认为现在,这将是要走的路,这将在未来的修订中得到解决。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)