HTML - When using UTF-8 or ISO-8859-1 do I still need to type the codes for the special characters?

frontend, html, xhtml

Solution

No, you only need to use a character reference if:

- The character you want cannot be represented in the character encoding you are using or

- The character has some special meaning in HTML (such as `<` or `&`).

Note that declaring you are using UTF-8 in the meta tag is insufficient. You also have to encode the HTML source in UTF-8 (good editors will default to this) and not override it with a declaration of some other encoding in the real HTTP headers. You should also set the real HTTP headers to state that UTF-8 is being used.

Problem

It is as the title says: HTML - When using UTF-8 or ISO-8859-1 do I still need to type the codes for the special characters? Or can I just type them normally? Ex: I'm using UTF-8 in my HTML META tag. I need to type ç should I just type it or type its code which is `&ccedil;` I know this is a trivial question, but it's fundamental so I just can't skip it.

Original source