Closed Bug 353833 Opened 18 years ago Closed 18 years ago

Bugzilla HTML pages are sent in UTF-8 with no charset mentioned in the HTTP headers

Categories

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

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 313910

People

(Reporter: tonymec, Assigned: justdave)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8pre) Gecko/20060921 Firefox/1.5.0.8pre
Build Identifier: 

Bugzilla pages are sent in UTF-8, but theit HTTP headers don't mention any charset; this causes accented characters (or anything higher than U+007F) to display as garbage unless the client browser happens to have been configured with "Default charset" set to UTF-8. For instance, the comment author name in https://bugzilla.mozilla.org/show_bug.cgi?id=343418#c5 appears with garbage before and after the d, where e-acute should be.

Reproducible: Always

Steps to Reproduce:
1. Browse to any Bugzilla page containing accented characters, e.g. https://bugzilla.mozilla.org/show_bug.cgi?id=343418#c5

Actual Results:  
Accented characters are garbled, unless you happen to have configured your browser with "Default charset" set to UTF-8 globally.

Expected Results:  
Accented characters should display correctly regardless of browser configuration.

Workaround: After displaying the page, click "View -> Character Encoding -> Unicode (UTF-8)" (in Firefox), or the equivalent in any browser which has an equivalent menu.

Additional information:
Thanks to "Live HTTP Headers" extension on Firefox, I can see that Bugzilla pages are sent with

Content-Type: text/html

where there should be (IIUC)

Content-Type: "text/html; charset=UTF-8"

IIUC, a BOM at page start (before the <!DOCTYPE) and/or the presence of <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" /> somewhere between <HEAD> and </HEAD>, would also fix the bug; neither are present.
Assignee: general → justdave
Component: Bugzilla-General → Bugzilla: Other b.m.o Issues
Product: Bugzilla → mozilla.org
QA Contact: default-qa → myk
Version: unspecified → other

*** This bug has been marked as a duplicate of 313910 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Component: Bugzilla: Other b.m.o Issues → General
Product: mozilla.org → bugzilla.mozilla.org
You need to log in before you can comment on or make changes to this bug.