Unicode 字符集 &在浏览器中编码 [英] Unicode character sets & encoding in browsers

查看:39
本文介绍了Unicode 字符集 &在浏览器中编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出在浏览器中如何实现字符集/编码,特别是 Unicode.

I'm trying to find out how character sets/encoding are implemented in browsers, specifically Unicode.

  1. 集合/编码是在每个浏览器中单独实现还是特定于操作系统?
  2. 是否可以找出正在使用的 Unicode Character Db (UCD) 版本?
  3. UCD 更新如何推送到每个浏览器/操作系统?(它是通过自动更新推出的,还是只是针对您使用的任何版本的浏览器/操作系统进行设置?)
  4. 每个浏览器/操作系统制造商的字符集/编码信息的链接会很好.

谢谢

推荐答案

我认为浏览器根本不担心 UCD.

I don't believe the browsers worry about the UCD at all.

格式正确的页面会为其定义一个字符集.示例:
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>

A wellformed page will have a charset defined for it. Example:
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />

任何正在显示的文本都会有一个为其定义的字体列表(按首选顺序).示例:
p { font-family: Verdana, Arial, sans-serif;}

Any text that is being displayed will have a list of fonts defined for it (in preferred order). Example:
p { font-family: Verdana, Arial, sans-serif; }

对于页面上的任何字符,浏览器只需在字体定义中查找字形即可.如果没有,它会移动到列表中的下一个字体.如果它完全走运,它可能只是使用操作系统提供的任何超级字体(Arial).

For any character on the page the browser simply looks up the glyph in the font definition. If there isn't one it moves to the next font in the list. If it lucks out completely it probably just uses whatever uber-font the OS provides (Arial).

这篇关于Unicode 字符集 &amp;在浏览器中编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆