如何在XHTML(utf-8)中显示字符151(长连字符)? [英] How do I display character 151 (long hyphen) in XHTML (utf-8) ?

查看:47
本文介绍了如何在XHTML(utf-8)中显示字符151(长连字符)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在XHTML(utf-8)中显示角色151(长连字符)?


是否还有另一个角色会替换? W3C验证解析器,
http://validator.w3.org ,告诉我们我,这个角色及其周围的人是非法的

- 然后,重新提交后它没有标记错误。


那么,0之间是否有任何非法字符在UTF-8字符集中有255个或者是

只是我想象W3C验证解析器认为有 - 比如在129-151之间,

或左右;然后它改变了主意?

How do I display character 151 (long hyphen) in XHTML (utf-8) ?

Is there another character that will substitute? The W3C validation parser,
http://validator.w3.org, tells me that this character and the ones around it are illegal
- then, after resubmission it flags no errors.

So, are there any illegal characters between 0 and 255 in the UTF-8 character set or is it
just my imagination that the W3C validation parser thinks there are - say between 129-151,
or thereabouts; then later it changes its mind?

推荐答案

Zenobia< 5. ********** @ spamgourmet。 COM>写道:
Zenobia <5.**********@spamgourmet.com> wrote:
如何在XHTML(utf-8)中显示字符151(长连字符)?


位置151是UTF-8中的控制字符,它不是长连字符。

Unicode中没有称为长连字符的字符,也许你考虑到破折号,这是
,这是Unicode的十进制8212和151的

Windows-1252?


你现在如何尝试展示角色?你是直接进入它还是你用的是b $ b $?前者在某些情况下可以是好的

(即如果你在宣传你的角色

编码为Windows-1252或类似的话,如果你的所有观众都可以

应对该编码)。后者只是危险而且只会因为某些浏览器破坏(或至少严重弯曲)

规格而导致'b $ b''工作'。

是否还有另一个角色可以替代? W3C验证解析器,
http://validator.w3.org ,告诉我们我,这个角色及其周围的人是非法的
- 然后,重新提交后它没有标记错误。


验证器的作用,特别是对于XHTML文档,通常有点令人困惑;并且验证不是每个错误都是无差别的测试。

那么,UTF-8字符集中0到255之间是否存在任何非法字符,或者是
只是我的想象力,W3C验证解析器认为有 - 比如在129-151之间,
或其附近;然后它改变了主意?
How do I display character 151 (long hyphen) in XHTML (utf-8) ?
Position 151 is a control character in UTF-8, it is not a long hyphen.
There is no character called long hyphen in Unicode, maybe you''re
thinking of the em dash, which is decimal 8212 in Unicode and 151 in
Windows-1252?

How are you currently trying to display the character? Are you
entering it directly or are you using —? The former can be okay
under some circumstances (i.e. if you''re advertising your character
encoding as being Windows-1252 or similar and if all your audience can
cope with that encoding). The latter is just dangerous and will only
''work'' because some browsers break (or at least severely bend) the
specification.
Is there another character that will substitute? The W3C validation parser,
http://validator.w3.org, tells me that this character and the ones around it are illegal
- then, after resubmission it flags no errors.
What the validator does, especially with XHTML documents, is often
slightly confusing; and validation is not an all-encompassing test for
every error.
So, are there any illegal characters between 0 and 255 in the UTF-8 character set or is it
just my imagination that the W3C validation parser thinks there are - say between 129-151,
or thereabouts; then later it changes its mind?




在HTML下,没有非法字符,但是有未定义的

字符不应该使用。这些是128到159的范围。


虽然相当古老的Jukka的文章
http://www.cs.tut.fi/~jkorpela/www/windows-chars.html
http://www.cs.tut.fi /~jkorpela/chars.html#win 解释的不仅仅是

适合合理的帖子。


Steve


-

我的理论给你起见,我的异端邪说你,

我从不回信,你不喜欢我的领带。 " - 医生


Steve Pugh< st *** @ pugh.net> < http://steve.pugh.net/>



Under HTML, there are no illegal characters, but there are undefined
characters that should not be used. These are the range 128 to 159.

Although rather old Jukka''s articles
http://www.cs.tut.fi/~jkorpela/www/windows-chars.html and
http://www.cs.tut.fi/~jkorpela/chars.html#win explain more than would
fit into a sensible post.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don''t like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>


Zenobia< 5. ********** @ spamgourmet.com>写道:
Zenobia <5.**********@spamgourmet.com> wrote:
如何在XHTML(utf-8)中显示字符151(长连字符)?


位置151是UTF-8中的控制字符,它不是长连字符。

Unicode中没有称为长连字符的字符,也许你考虑到破折号,这是
,这是Unicode的十进制8212和151的

Windows-1252?


你现在如何尝试展示角色?你是直接进入它还是你用的是b $ b $?前者在某些情况下可以是好的

(即如果你在宣传你的角色

编码为Windows-1252或类似的话,如果你的所有观众都可以

应对该编码)。后者只是危险而且只会因为某些浏览器破坏(或至少严重弯曲)

规格而导致'b $ b''工作'。

是否还有另一个角色可以替代? W3C验证解析器,
http://validator.w3.org ,告诉我们我,这个角色及其周围的人是非法的
- 然后,重新提交后它没有标记错误。


验证器的作用,特别是对于XHTML文档,通常有点令人困惑;并且验证不是每个错误都是无差别的测试。

那么,UTF-8字符集中0到255之间是否存在任何非法字符,或者是
只是我的想象力,W3C验证解析器认为有 - 比如在129-151之间,
或其附近;然后它改变了主意?
How do I display character 151 (long hyphen) in XHTML (utf-8) ?
Position 151 is a control character in UTF-8, it is not a long hyphen.
There is no character called long hyphen in Unicode, maybe you''re
thinking of the em dash, which is decimal 8212 in Unicode and 151 in
Windows-1252?

How are you currently trying to display the character? Are you
entering it directly or are you using —? The former can be okay
under some circumstances (i.e. if you''re advertising your character
encoding as being Windows-1252 or similar and if all your audience can
cope with that encoding). The latter is just dangerous and will only
''work'' because some browsers break (or at least severely bend) the
specification.
Is there another character that will substitute? The W3C validation parser,
http://validator.w3.org, tells me that this character and the ones around it are illegal
- then, after resubmission it flags no errors.
What the validator does, especially with XHTML documents, is often
slightly confusing; and validation is not an all-encompassing test for
every error.
So, are there any illegal characters between 0 and 255 in the UTF-8 character set or is it
just my imagination that the W3C validation parser thinks there are - say between 129-151,
or thereabouts; then later it changes its mind?




在HTML下,没有非法字符,但是有未定义的

字符不应该使用。这些是128到159的范围。


虽然相当古老的Jukka的文章
http://www.cs.tut.fi/~jkorpela/www/windows-chars.html
http://www.cs.tut.fi /~jkorpela/chars.html#win 解释的不仅仅是

适合合理的帖子。


Steve


-

我的理论给你起见,我的异端邪说你,

我从不回信,你不喜欢我的领带。 " - 医生


Steve Pugh< st *** @ pugh.net> < http://steve.pugh.net/>



Under HTML, there are no illegal characters, but there are undefined
characters that should not be used. These are the range 128 to 159.

Although rather old Jukka''s articles
http://www.cs.tut.fi/~jkorpela/www/windows-chars.html and
http://www.cs.tut.fi/~jkorpela/chars.html#win explain more than would
fit into a sensible post.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don''t like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>


Zenobia< 5. ********** @ spamgourmet.com>写道:
Zenobia <5.**********@spamgourmet.com> wrote:
如何在XHTML(utf-8)中显示角色151(长连字符)?

是否还有另一个角色会替换? W3C验证解析器,
http://validator.w3.org ,告诉我们我,这个角色及其周围的人是非法的
- 然后,重新提交后它没有标记错误。

那么,在UTF-8字符中0到255之间是否有任何非法字符设置或者只是我的想象力W3C验证解析器认为有 - 比如在129-151之间,
或其附近;然后它会改变主意吗?
How do I display character 151 (long hyphen) in XHTML (utf-8) ?

Is there another character that will substitute? The W3C validation parser,
http://validator.w3.org, tells me that this character and the ones around it are illegal
- then, after resubmission it flags no errors.

So, are there any illegal characters between 0 and 255 in the UTF-8 character set or is it
just my imagination that the W3C validation parser thinks there are - say between 129-151,
or thereabouts; then later it changes its mind?




128到159之间的字符在HTML中无效 - 它们是

Windows扩展到字符集。 长连字符 (em dash)

应编码为 - 。


请参阅Jukka Korpela的页面

http://www.cs.tut.fi/~jkorpela/ www / windows-chars.html


了解有关大多数这些

字符的正确代码的信息。对于字符128,Windows欧元符号,请参阅

http://www.cs.tut.fi/~jkorpela/html/euro.html


Windows没有129个字符Jukka

在158和142位留下了大小写的z-hacek -I

don''知道原因!


-

Harlan Messinger

从我的电子邮件地址中删除第一个点。

Veuillez?ter le premier point de mon adresse de courriel。



The characters between 128 and 159 are not valid in HTML--they are
Windows extensions to the character set. The "long hyphen" (em dash)
should be coded as — .

See Jukka Korpela''s page at

http://www.cs.tut.fi/~jkorpela/www/windows-chars.html

for information on the proper code to use for most of these
characters. For character 128, the Windows euro symbol, see

http://www.cs.tut.fi/~jkorpela/html/euro.html

Windows doesn''t have characters for 129, 141, 143, 144, or 157. Jukka
left out the lower- and upper-case z-hacek at positions 158 and 142--I
don''t know why!

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ?ter le premier point de mon adresse de courriel.


这篇关于如何在XHTML(utf-8)中显示字符151(长连字符)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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