Closed Bug 853763 Opened 13 years ago Closed 13 years ago

UTF-8 encoding not detected

Categories

(Firefox :: Untriaged, defect)

17 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: davian818+1, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0 Build ID: 20121128204232 Steps to reproduce: Navigate to the Yahoo! Groups site. It serves "Content-Type: text/html" pages. The pages are not XML and have neither meta content type header, nor BOM. Actual results: The page is displayed in ISO-8859-5 encoding, despite being in UTF-8. It is very marginal encoding. Expected results: The page displayed in proper UTF-8 form automatically.
What encoding is the server/page says it's in? Firefox mainly go with the encoding the server/page tells it to do. [1] [1] https://developer.mozilla.org/en-US/docs/How_Mozilla_determines_MIME_Types#HTTP
The encoding is not specified. Just text/html.
Then your depending on sniffing and won't get utf-8 unless the first package of the page contains a unicode character. You SHOULD have encoding specified either in the http header or in the http head (<meta charset="utf-8">), else it will be a gamble if there will be one or not.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.