How can I show special characters like "e" with accent acute over it in HTML page?

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

Don’t forget to specify the character set/encoding properly.

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

Or using an entity reference:

Universit‌é de Moncton

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

You can use UTF-8 HTML Entities:

&#232;    è
&#233;    é
&#234;    ê
&#235;    ë

Here's a handy search page for the UTF-8 Character Map


There are two methods. One is by using "HTML entities." You need to enter them as, for example, &eacute;. Here is a comprehensive reference of named entities; you can also reference the Unicode code point of a given character, using its decimal form as &#1234; or its hex form as &#x4D2;.

Perhaps more common now (ten years after this answer was originally entered) is simply using Unicode characters directly. Rất dễ dàng, phải không? This is more acceptable and universal because most pages now use UTF-8 as their character encoding.

运气!

Tags:

Html