Character encoding - MDN Web Docs Glossary: Definitions of Web-related terms 编辑
An encoding defines a mapping between bytes and text. A sequence of bytes allows for different textual interpretations. By specifying a particular encoding (such as UTF-8), we specify how the sequence of bytes is to be interpreted.
For example, in HTML we normally declare a character encoding of UTF-8, using the following line:
<meta charset="utf-8">
This ensures that you can use characters from just about any human language in your HTML document, and they will display reliably.
Learn more
General knowledge
- Character encoding on W3C
- Character encoding on Wikipedia
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论