Closed Bug 295910 Opened 20 years ago Closed 13 years ago

Charset incorrectly set to utf-8

Categories

(www.mozilla.org :: General, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: ted, Unassigned)

References

()

Details

On the module ownership page, the charset seems to be detected as utf-8
sometimes, resulting in lots of garbage characters on the page.  Seems to be
somewhat reproducible on Linux.  The HTTP server is not sending an encoding in
the Content-Type header, and the page specifies iso-8859-1 in a META tag.
I see the same behavior in 1.0.4 on Windows, but not on a 0527 Windows trunk
build, fwiw.
Ah, scratch that, I see this on the Windows trunk build as well.
OS: Linux → All
(at least) one of the www.mozilla.org servers sends a charset in the
content-type header:
$ host www.mozilla.org
www.mozilla.org has address 140.211.166.206
www.mozilla.org has address 207.126.111.216
www.mozilla.org has address 207.126.111.217

$ telnet 140.211.166.206 80
Trying 140.211.166.206...
Connected to anguis.mozilla.osuosl.org (140.211.166.206).
Escape character is '^]'.
HEAD / HTTP/1.0
Host: www.mozilla.org

HTTP/1.1 200 OK
Date: Sun, 29 May 2005 21:32:03 GMT
Server: Apache/2.0.46 (Red Hat)
Last-Modified: Sat, 28 May 2005 20:18:26 GMT
ETag: "1f4042-73fa-5b6b2880"
Accept-Ranges: bytes
Content-Length: 29690
Cache-Control: max-age=3600
Expires: Sun, 29 May 2005 22:32:03 GMT
Connection: close
Content-Type: text/html; charset=UTF-8

Connection closed by foreign host.

-> server ops
Assignee: darin → justdave
Component: Networking: HTTP → Server Operations
Product: Core → mozilla.org
QA Contact: networking.http → myk
Version: Trunk → other
Ah, that makes sense.  Anguis is a recent addition to the lineup, and apache2
defaults to utf-8 when you install it (it then has to be disabled if you're
using meta-headers for the language codes).

I just fixed anguis to not set a default charset.

The real fix for this is to either re-code the pages, or set up the charsets in
the .htaccess files for anything that's not UTF-8.  This is just going to hit us
again every time we add another webserver.
Assignee: justdave → mozilla.webmaster
Component: Server Operations → webmaster@mozilla.org
QA Contact: myk → danielwang
How hard would it be to re-code all the pages in UTF-8?
Assignee: www-mozilla-org → nobody
QA Contact: danielwang → www-mozilla-org
Product: mozilla.org → Websites
The page is currently being sent as UTF-8 (via a meta tag) and I'm not seeing any garbage characters, so resolving WFM.

See also bug 154570.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.