Internationalization (i18n)

Making the World Wide Web worldwide!


News by category
News archives
Search news

Updated article: Handling character encodings in HTML and CSS

The paragraph about CSS encoding declarations in the “In a nutshell” section was changed from:

“Use the @charset rule for external style sheets (but not CSS in your HTML page) if you have non-ASCII content, such as font names, ids or class names, etc.”

to

“You can use @charset or HTTP headers to declare the encoding of your style sheet, but you only need to do so if your style sheet contains non-ASCII characters and, for some reason, you can’t rely on the encoding of the HTML and the associated style sheet to be the same.”

Update 3 June:
Additional changes were made throughout the page. In particular, lists of article content were removed to make it easier to keep the tutorial page up to date.

Leave a Reply

Your email address will not be published. Required fields are marked *

Before you comment here, note that your IP address is sent to Akismet, the plugin we use to mitigate spam comments.


Copyright © 2025 World Wide Web Consortium.
W3C® liability, trademark and permissive license rules apply.

Questions or comments? xfq@w3.org