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

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

问题描述

我想了解如何在浏览器(特别是Unicode)中实现字符集/编码。


  1. 实现集/编码

  2. 是否可以找出使用的是什么版本的Unicode字符Db(UCD)?

  3. 如何将UCD更新推送到每个浏览器/操作系统? (是否曾通过自动更新推出,还是只针对您使用的任何版本浏览器/操作系统设置?)

  4. 每个浏览器/操作系统制造商的字符集/编码信息链接
  5. 我不相信浏览器一定会担心UCD。



    一个格式良好的页面会定义一个字符集。示例:
    < meta http-equiv =Content-Typecontent =application / xhtml + xml; charset = UTF-8/>



    正在显示的任何文本都将具有为其定义的字体列表(按优选顺序)。示例:

    p {font-family:Verdana,Arial,sans-serif; }



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


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

    1. Are sets/encodings implemented separately in each browser or is it OS specific?
    2. Is it possible to find out what version of the Unicode Character Db (UCD) is being used?
    3. How are UCD updates pushed to each browser/OS? (Is it ever pushed out via automatic updates or is it just set for whatever version browser/OS you're using?)
    4. Links to character sets/encoding information for each browser/OS manufacturer would be nice.

    Thanks

    解决方案

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

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

    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; }

    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天全站免登陆