@charset can only appear in a style sheet file, not in the html document itself. Can someone give me an example of how and why you would use @charset instead of specifying the charset in the content-type of the html file? I am very interested in i18n and l10n and I can't see any advantage to using it.
Its not instead
Its not instead of.
@charset is used to describe the charset of the stylesheet file.
content-type is one of the methods available for describing the charset used in the webpage.
Okay, that makes sense and
Okay, that makes sense and it is what I would have assumed at first. Then the description at devguru is incorrect which says, "The @charset at-rule allows you to designate a character set be used with an HTML document."