Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I need to use HTML entities for special characters if I'm using the UTF-8 charset?

A site I'm working on is switching from ISO. If the HTML character set is set to UTF-8, do I still need to replace ©, é, , etc with the appropriate HTML entity?

like image 391
Dirk Diggler Avatar asked Sep 13 '11 16:09

Dirk Diggler


1 Answers

No, symbols like ©, é, , the German umlauts ä, ö, ü, ß and all the other stuff can be used just like any other character when using UTF-8.

But note that some things still have to be entities because they have a special meaning in HTML ( < and > for example, which should still be replaced with &gt; and &lt; if you want to use them in your text)

like image 91
oezi Avatar answered Nov 15 '22 08:11

oezi