Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

html

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.

like image 722
Pouya BCD Avatar asked Sep 28 '10 13:09

Pouya BCD


2 Answers

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 -->
like image 195
Gumbo Avatar answered Oct 02 '22 13:10

Gumbo


You can use UTF-8 HTML Entities:

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

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

like image 30
scunliffe Avatar answered Oct 02 '22 12:10

scunliffe