Do I need to use HTML objects for special characters if I use UTF-8 encoding?

The site I'm working on is switching from ISO. If the HTML character set is set to UTF-8, I still need to replace © , é , etc. On the corresponding HTML object?

+6
source share
3 answers

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

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

+6
source

In short: no, you do not do this, in fact I would even advise against using them anymore. Perhaps the use of outdated links will be in some links to html pages, and the forms will be "received", but even here we can usually do without them.

+1
source

It also depends on how you create / edit your content. If you have users editing files locally on Windows and what not, it might be safer to stick with entities in the end.

+1
source

Source: https://habr.com/ru/post/897243/


All Articles