在HTML中应使用以下哪些Unicode字符? [英] Which of the following Unicode characters should be used in HTML?

查看:184
本文介绍了在HTML中应使用以下哪些Unicode字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道任何Unicode字符都可以通过以下格式插入HTML文档:

I am aware that any Unicode character can be inserted into an HTML document via the following format:

�

...其中 0000

我的问题是:当涉及到客户端的浏览器时,这些字符中的哪一个具有最广泛的可用性显示字符?

My question is: which of these characters has the most widespread availability when it comes to the client's browser being able to display the character?

换句话说,要广泛部署的HTML文档中应使用的代码范围是什么

推荐答案

是否通过&#xNNNN; 字符引用或只是通过键入或复制 - 直接粘贴到页面中,它只是一个字体的问题。如果用户有字体的字形,他们的网页浏览器知道,它会工作。如果他们没有,它将是一个小盒子。

Whether you enter them via &#xNNNN; character reference or just by typing or copy-pasting them directly into the page, it's purely a question of fonts. If the user has a glyph for the character in the fonts their web browser knows about, it'll work. If they don't, it'll be a little box.

fileformat.info有字体可用性细节,可以帮助猜测如何广泛的字形支持。例如。点击U + 25B6的此页面上的字体链接。对我来说,这在大多数平台上呈现,但不是在一个vanilla XP安装与IE6(IE7选择从Lucida Sans Unicode IE6 FSR不打扰看)。

fileformat.info have font-availability details that can be of help for guessing how widespread glyph support is. eg. hit the Fonts link on this page for U+25B6. For me, this renders on most platforms but not on a vanilla XP install with IE6 (IE7 picks it up from Lucida Sans Unicode which IE6 FSR doesn't bother look at).

◄►U + 25C4,U + 25BA左/右指针字形似乎是

◄ ► U+25C4, U+25BA Left/Right-Pointing Pointer glyphs seem to be more widely available than

◀▶U + 25C0,U + 25B6左/右三角形字形

◀ ▶ U+25C0, U+25B6 Left/Right-Pointing Triangle glyphs

所以我会使用它们。特别是他们在XP + IE6中使用默认字体渲染,因为它们存在于Arial中。这使他们更像三角形比指针是应该的。 (叹息)OTOH它的上/下三角形是好的。

so I'd use those instead. In particlar they render in XP+IE6 with default fonts because they are present in Arial. Which renders them more like Triangle than Pointer is supposed to be. (sigh) OTOH its up/down Triangles are fine.

SO使用►在列表项目符号在如何格式化框。 ⇗

SO uses ► for list bullets in the ‘how to format’ box over there. ⇗

[因为网站JS似乎在播放而对编辑中的评论作出回应,而非评论]

[response to comment in edit instead of comment as site JS appears to be playing up]

还有‣,U + 2023三角项目,这是一个广泛存在的印刷版本的块。不幸的是,它不是在Arial或其他字体IE6上的默认XP将使用。也不是▸U + 25B8黑色右指小三角形。

There's also ‣, U+2023 Triangular Bullet, which is in a block of widely-available typographical-niceties. Unfortunately, again, it's not in Arial or other fonts IE6 on a default XP will use. Neither is ▸ U+25B8 Black Right-Pointing Small Triangle.

法语风格的报价(海雀)<>«»将在任何地方都可用,可能被认为有点滥用。

French-style quotes (guillemets) ‹ › « » will be available absolutely everywhere, but using them for arrows might be considered a bit of an abuse.

这篇关于在HTML中应使用以下哪些Unicode字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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