In CSS, you can declare the text encoding of the CSS file using the @charset
at-rule at the very top of the file. For example:
@charset "UTF-8";
(See http://www.w3.org/International/questions/qa-css-charset.en.php).
Is there a similar mechanism for JavaScript files? (Aside from the Content-Type
HTTP header.)