如何显示特殊字符,如“e”在HTML页面中带有重音? [英] How can I show special characters like "e" with accent acute over it in HTML page?

查看:199
本文介绍了如何显示特殊字符,如“e”在HTML页面中带有重音?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要把一些大学的名字放在我的网页上。我已经打了他们,因为他们是,但在一些浏览器或一些计算机,他们出现不同。例如,Universite de Moncton应该在Universite中具有第二个e,并且在其上具有重音。

I need to put the name of some universities on my web page. I have typed them as they were but in some browser or maybe some computers they appear differently. For example, "Universite de Moncton" should have the 2nd "e" in Universite with an accent acute over it. Could you please help about it.

推荐答案

如果您使用的字符集包含该字符,您可以使用适当的字符编码并使用它字面:

If you’re using a character set that contains that character, you can use an appropriate character encoding and use it literally:

Universit‌é de Moncton

不要忘记指定字符集/编码

如果没有,您可以使用 HTML字符引用数字字符引用,表示通用字符集(UCS)中字符的代码点: p>

If not, you can use an HTML character reference, either a numeric character reference that denotes the code point of the character in the Universal Character Set (UCS):

Universit‌é de Moncton
Universit‌é de Moncton

或使用实体参考

Universit‌é de Moncton

但是这个实体只是数字字符引用的命名表示=http://www.w3.org/TR/html4/sgml/entities.html>在HTML 4中定义的实体引用列表 ):

But this entity is just a named representation of the numeric character reference (see the list of entity references that are defined in HTML 4):

<!ENTITY eacute CDATA "&#233;" -- latin small letter e with acute,
                                  U+00E9 ISOlat1 -->

这篇关于如何显示特殊字符,如“e”在HTML页面中带有重音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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