我在标题中指定了字符集,是否需要在meta/head/html中指定它?
我在标题中指定了字符集,是否需要在meta/head/html中指定它?
I specified charset in the headers, do I need to specify it in the meta/head/html?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你不需要。我能想到的唯一例外是您的文档可能会保存到磁盘以供以后使用并且预计可以工作。如果是这样,那么最好在 HTML 中包含字符编码。
You don't need to. The only exception I can think of is if your document is likely to be saved to a disk for later use and expected to work. If so, then it would be a good idea to include the character encoding within the HTML.
您不需要这样做。但很有礼貌。
You don't need to. But it's polite.