Closed Bug 445108 Opened 16 years ago Closed 16 years ago

Weird characters show when set charset to us-ascii

Categories

(Firefox :: General, defect)

2.0 Branch
x86
All
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 238694

People

(Reporter: zhan-lm, Unassigned)

Details

Attachments

(1 file)

33.04 KB, image/jpeg
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 (CK-IBM) Firefox/2.0.0.15 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 (CK-IBM) Firefox/2.0.0.15 If we set charset to us-ascii, some weird characters shows at beginning of the page. Reproducible: Always Steps to Reproduce: 1. Write a page as follow <HTML> <HEAD> <META http-equiv="content-type" content="text/html; charset=us-ascii"> </HEAD> <BODY> <hr> Where do the weird chars come from?? </BODY> </HTML> 2. view in FF2.0.0.x and FF 3.0 Actual Results: some weird characters shows at beginning of the page. Expected Results: The page should begin with hr.
Severity: normal → major
Version: unspecified → 2.0 Branch
Attached image snapshot
The sequence EF BB BF is the UTF-8 BOM - you will need to make sure that your editor is configured to save as ASCII. See bug 238694 comment #5 -> Duplicate of bug 238694 ?
it is, see bug 238694 comment #2 Your editor created a Unicode file, not an ASCII file. There's a special marker in front that notifies the reader that it's a Unicode file. But the charset indicator takes precedence, so you see these weird characters.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: