Re: UTF-8 JavaScript files



As specified, HTTP header information and “A META declaration with "http-
equiv" set to "Content-Type" and a value set for "charset"” take precedence
over this attribute and related attributes.

<http://www.w3.org/TR/REC-html40/charset.html>

On Sun, 04 Jul 2010 00:18:34 +0200, johncoltrane wrote:

I thought it was possible to override the HTTP header with in-document
declarations. Thanks.

I remember Apache's default iso-8859-1 setting only too well.
Stumbled into that after changing my HTML pages to UTF-8
encoding and had to remove the default setting from Apache.

Nowadays one might standardize thoroughly on UTF-8 and set that
as the default, but I haven't done this. I rely on the charset
declaration in the meta tag.

I read that JavaScript files are, by default, by the browser,
assumed to be encoded in the same character set as the web page
itself, and that has been confirmed by the tests. Now I only
have to find why I'm having the problem on this particular
server at work.

Hans-Georg
.



Relevant Pages

  • Dealing with character sets
    ... displayed for other users via HTML. ... I've taken care of the HTML aspect ... Everything works for me, but I use UTF-8. ... how do I know what character set the data is coming in? ...
    (comp.lang.php)
  • Re: Accented letters
    ... UTF-8 is an encoding, not a character set. ... The character set of HTML 4 _is_ Unicode. ... Every character in Unicode can be encoded with UTF-8. ...
    (comp.infosystems.www.authoring.html)
  • Re: CLOS and C++
    ... > do java declarations provide anything which cl declarations do not? ... Generating docbook is fine -- but why on earth would you need ... >> And I should probably make it output HTML, though, instead of an Emacs ...
    (comp.lang.lisp)
  • Re: Keyword abuse (Re: reduced size symbols/keywords)
    ... > packages and it is important that the refer to the same symbol. ... because I want to use XHTML and you use HTML), there is no way to keep ... agnostic about what tags can exist in an HTML/XML document, ... some declarations, at least. ...
    (comp.lang.lisp)
  • Re: ora-600 with table...cast... on 10.2.0.3 / al32utf8 / linux
    ... so it may seem logical that declarations of VARCHAR2s ... with CHAR size semantics that may exceed 32Kb limit shouldn't be ... variable-length code point encodings, like UTF-8? ... actually allocating memory Oracle seems to be preparing for the worst ...
    (comp.databases.oracle.server)