特殊字符的编号或名称 [英] number or name for special character

查看:78
本文介绍了特殊字符的编号或名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

符合HTML 4.0的浏览器需要识别& #number;

符号。

如果我使用XHTML 1.0和charset UTF-8虽然,& amp& ; eacute;支持é?


有时当我在我的代码上运行TIDY实用程序时,它会替换我的角色

奇怪的东西,我不认识的符号。另外,当我从ISO-8859-1转换为UTF-8时,我发现很多特殊字符

没有很好的过渡。


感谢这一群中精彩人士的所有帮助。

解决方案

2004年11月2日星期二01:格林尼治标准时间36:55,骑自行车的吉他手

< Ch *** @ TheBicyclingGuitarist.net>在

comp.infosystems中声明。 www.authoring.html:

如果我使用XHTML 1.0和charset UTF-8,那么& eacute;和é一样多的支持?


一般来说,数字实体比其命名的

等价物有更好的支持。不确定那个具体。


不完全是你问的问题,但是这表明支持每个* numeric *实体的支持度是多少?(a)现在有点过时了,虽然较新的浏览器版本可能至少支持早期版本的b / b

http://www.fjordaan.uklinux.net/enti...s_support.html

有时当我在我的代码上运行TIDY实用程序时,它会用奇怪的东西替换我的角色
符号,我不认识。


示例(理想情况下在URL之前和之后)?

另外,当我从ISO-8859-1转换为UTF-8时,我发现许多特殊角色没有很好地过渡。




这可能是因为这些角色是UTF-8的一部分而不是< br $> b $ b ISO-8859-1。


-

Mark Parnell
http://www.clarkecomputers.com.au


On星期二,2004年11月2日01:36:55 GMT,

骑自行车的吉他手 <章*** @ TheBicyclingGuitarist.net>发布:

符合HTML 4.0的浏览器需要识别& #number;
符号。

如果我使用XHTML 1.0和charset但是,UTF-8确实是这样的。和é一样多的支持?


很可能,我还没有找到一个不支持实体的浏览器

对于任何不太常见的角色。你可能更有可能会出现问题,浏览器试图显示某些内容,因为当前字体不足以支持浏览器不支持

字符。


就个人而言,我更喜欢命名实体而非数字引用。如果,由于某些原因,我的浏览器无法显示某些参考信息,它将显示

代码,因为它不能做什么(* )。我对我应该拥有的东西有一个公平的猜测

如果写的话和他们的话。在页面上,但我不得不查看é

所提到的内容。


*有些浏览器不显示你的详细信息我错过了,他们会打印一个?或一个空白框。非常无益......


尽管如此,有一种观点认为可以避免一件事:

欧元。建议写一下这个名字,通常,而不是

尝试使用符号。 (

系统上并没有总是有符号,或者它没有正确创作,因此浏览器不会显示
并非所有国家都使用它 - 在澳大利亚,你会非常了解欧元是什么。

有时当我运行TIDY实用程序时在我的代码中,它用奇怪的外观替换了我的角色
符号,我不认识。另外,当我从ISO-8859-1转换为UTF-8时,我发现许多特殊字符并没有很好地过渡。




通常那是'因为你实际上并没有在编码系统中创作

,你认为你是。如果您正在使用旧版本的Windows系统(例如Win98SE)上的纯文本编辑器进行编辑,那么您可能最好不要说清楚

它正在接收win1252编码。对于较新的系统或更高级的编辑器,它可能是UTF方案之一,但也许不是UTF-8(Windows的想法

Unicode可能是UTF16或UTF8,取决于应用程序 - 但没有

指示它正在使用,你将不得不测试的东西。


说什么系统和你正在使用的软件一样,有人可能会告诉你它正在做什么,或者让你知道它是否有任何特殊的缺点。


-

如果您坚持通过电子邮件发送给我,请使用回复地址(这是真实的,但暂时是

)。但请回复小组,就像你应该的那样。


这条消息是在没有病毒的情况下发送的,请自行删除一些文件。


"添" < ti*@mail.localhost.invalid> écritdansle message de

news:1a **************************** @ 40tude.net

如果我使用XHTML 1.0和charset UTF-8,那么& eacute;支持é?



如果您的页面真的是用UTF-8编码的,那么您不需要使用实体



有一种观点认为特别要避免一件事,
虽然:欧元。




我认为现在对欧元符号的支持非常广泛:Windows

和Macintosh至少支持它多年......

欧元区以外的计算机是否正在运行他们不支持欧元符号的旧软件?


A browser conforming to HTML 4.0 is required to recognize &#number;
notations.
If I use XHTML 1.0 and charset UTF-8 though, does &eacute; have as much
support as é ?

Sometimes when I run the TIDY utility on my code, it replaces my character
notations with weird looking things I don''t recognize. Also, when I
converted to UTF-8 from ISO-8859-1, I discovered many special characters
didn''t make the transition well.

Thanks for all the help from the wonderful people in this group.

解决方案

On Tue, 02 Nov 2004 01:36:55 GMT, The Bicycling Guitarist
<Ch***@TheBicyclingGuitarist.net> declared in
comp.infosystems.www.authoring.html:

If I use XHTML 1.0 and charset UTF-8 though, does &eacute; have as much
support as é ?
In general numeric entities have better support than their named
equivalents. Not sure about that one specifically.

Not entirely what you were asking, but this shows how well supported
each of the *numeric* entities are (a bit outdated now, though newer
versions of browsers would presumably support at least the same ones
that earlier versions did).
http://www.fjordaan.uklinux.net/enti...s_support.html
Sometimes when I run the TIDY utility on my code, it replaces my character
notations with weird looking things I don''t recognize.
Examples (ideally before and after URLs)?
Also, when I
converted to UTF-8 from ISO-8859-1, I discovered many special characters
didn''t make the transition well.



That''s presumably because those characters are part of UTF-8 but not
ISO-8859-1.

--
Mark Parnell
http://www.clarkecomputers.com.au


On Tue, 02 Nov 2004 01:36:55 GMT,
"The Bicycling Guitarist" <Ch***@TheBicyclingGuitarist.net> posted:

A browser conforming to HTML 4.0 is required to recognize &#number;
notations.

If I use XHTML 1.0 and charset UTF-8 though, does &eacute; have as much
support as é ?
Quite probably, I haven''t found a browser that didn''t supported entities
for any of the characters that aren''t too unusual. You''re probably more
likely to strike problems with the browser trying to display something that
the current font is inadequate for than the browser not supporting the
character.

Personally, I prefer named entities than numerical references. If, for
some reason, my browser can''t display some reference it''s going to show the
code for what it can''t do (*). I''ve got a fair guess at what I should have
seen if it writes &eacute; on the page, but I''d have to look up what é
referred to.

* Some browsers don''t show details for what you''re missing out on, they''ll
just print a ? or a blank box. Very unhelpful...

There''s a point of view that says to avoid one thing in particular, though:
The euro. With a recommendation to write the name, normally, rather than
try and use a symbol for it. (There isn''t always a symbol for it on the
system, or it''s not authored right and the browser, therefore, doesn''t
display it. Also, not all countries use it - in Australia you''d get very
little comprehension about what a euro is.)
Sometimes when I run the TIDY utility on my code, it replaces my character
notations with weird looking things I don''t recognize. Also, when I
converted to UTF-8 from ISO-8859-1, I discovered many special characters
didn''t make the transition well.



Usually that''s because you''re not actually authoring in the encoding system
that you think you are. If you''re editing in plain text editors on older
Windows systems, like Win98SE, you''re probably better off telling tidy that
it''s receiving win1252 encoding. For newer systems, or fancier editors, it
might be one of the UTF schemes, but perhaps not UTF-8 (Windows idea of
Unicode might be UTF16 or UTF8, depending on the application - but with no
indication of which it''s using, you''ll have to test things).

Say what system and software you''re using, someone might be able to tell
you what it''s doing, or let you know if it has any peculiar foibles.

--
If you insist on e-mailing me, use the reply-to address (it''s real but
temporary). But please reply to the group, like you''re supposed to.

This message was sent without a virus, please delete some files yourself.


"Tim" <ti*@mail.localhost.invalid> a écrit dans le message de
news:1a****************************@40tude.net

If I use XHTML 1.0 and charset UTF-8 though, does &eacute; have as
much support as é ?


If your page is really encoded in UTF-8, you shouldn''t need to use entities
!
There''s a point of view that says to avoid one thing in particular,
though: The euro.



I thought the support for the Euro symbol nowdays was really wide : Windows
and Macintosh at least support it for years... Are the computers outside the
Euro zone running so old software that they don''t support the Euro symbol ?


这篇关于特殊字符的编号或名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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