Re: UTF-8 JavaScript files
- From: Hans-Georg Michna <hans-georgNoEmailPlease@xxxxxxxxxx>
- Date: Mon, 05 Jul 2010 08:56:40 +0200
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
.
- References:
- UTF-8 JavaScript files
- From: Hans-Georg Michna
- Re: UTF-8 JavaScript files
- From: johncoltrane
- Re: UTF-8 JavaScript files
- From: Thomas 'PointedEars' Lahn
- Re: UTF-8 JavaScript files
- From: johncoltrane
- UTF-8 JavaScript files
- Prev by Date: Re: UTF-8 JavaScript files
- Next by Date: Re: UTF-8 JavaScript files
- Previous by thread: Re: UTF-8 JavaScript files
- Next by thread: Re: UTF-8 JavaScript files
- Index(es):
Relevant Pages
|