我在标题中指定了字符集,是否需要在meta/head/html中指定它?

发布于 2024-08-14 19:19:10 字数 43 浏览 1 评论 0原文

我在标题中指定了字符集,是否需要在meta/head/html中指定它?

I specified charset in the headers, do I need to specify it in the meta/head/html?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

雪化雨蝶 2024-08-21 19:19:10

你不需要。我能想到的唯一例外是您的文档可能会保存到磁盘以供以后使用并且预计可以工作。如果是这样,那么最好在 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.

倾其所爱 2024-08-21 19:19:10

您不需要这样做。但很有礼貌。

You don't need to. But it's polite.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文