W3cubDocs

/CSS

CSS Charsets

CSS Charsets is a module of CSS that lets you specify the character set used in the style sheet.

Reference

At-rules

Specifications

Specification Status Comment
CSS Level 2 (Revision 1)
The definition of '@charset' in that specification.
Recommendation Initial definition

Browser compatibilityUpdate compatibility data on GitHub

@charset rule

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 2 No 1.5
1.5
Firefox 1 supported an invalid syntax where the character encoding is not between single or double quotes.
5.5
5.5
From Internet Explorer 5.5 to IE 7 (inclusive), Internet Explorer supported an invalid syntax where the character encoding is not between single or double quotes.
9 4
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support 2 ? No 4 10 4 ?

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Charsets