What is the advantage of adding @charset "ISO-8859-15"; upstairs in the css file?

What is the advantage of adding @charset "ISO-8859-15"; or @charset "utf-8"; upstairs in css?

+3
source share
2 answers

It indicates the character encoding of this CSS file and, therefore, how the browser should read it (strictly, how the browser should interpret the bytes that make up this CSS file into characters and, therefore, strings).

EDIT: A mandatory link to the Joel Spolsky character encoding article is included to clear up any encoding issues.

+4
source

. css , HTML-, , HTML , . , CSS.

+1

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


All Articles