Closed Bug 262394 Opened 21 years ago Closed 13 years ago

Guidelines tell people to use ISO-8859-1 instead of UTF-8

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: justdave, Assigned: fantasai.bugs)

References

()

Details

Attachments

(1 file)

<quote> Use the ISO-8859-1 aka. Latin-1 character encoding. Represent characters that are outside the ISO-8859-1 repertoire (eg. typographically correct dashes and quotes) as decimal numeric character references. For example, encode the em dash (—) as &#8212;. </quote> Shouldn't we be telling people to use UTF-8?
Attached patch patchSplinter Review
Assignee: mozilla.webmaster → fantasai.bugs
Status: NEW → ASSIGNED
justdave, do these changes look good to you?
> justdave, do these changes look good to you? No, these instructions imply that ISO-8859-1 pages are UTF-8 compatible. They aren't. Pages which are completely ASCII are UTF-8 compatible. ISO-8859-1 numerical entities are UTF-8 compatible, because the ISO-8859-1 character codes are a subset of Unicode (which is what we were discussing on IRC). However, the ISO-8859-1 characters with codes above 127 are encoded differently in ISO-8859-1 and UTF-8. All ISO-8859-1 characters can be converted to UTF-16 by adding a zero byte in front of each character. However, UTF-8 only allows 7 bits in the first byte of a code (reserving the 8th bit for a continuation flag which indicates that more bytes follow). This means an ISO-8859-1 character with a code above 127 requires 2 bytes to express in UTF-8.
When bug 154570 is fixed, we have to fix this. Before that, it would be quite impossible. Although we could advice people to use US-ASCII as charset and use character references for all characters that don't fit...
Depends on: 154570
> ISO-8859-1 > numerical entities are UTF-8 compatible, because the ISO-8859-1 character codes > are a subset of Unicode aren't numerical character references always a unicode reference?
Yes. Every character reference is encoding independent. Eventually we should just switch to UTF-8 for a day or so and see what breaks and fix that.
QA Contact: danielwang → www-mozilla-org
Product: mozilla.org → Websites
Given the age of this bug and that page, I think we can probably just archive that page and move its replacement contents to one of many wikis, if necessary.
Depends on: 670589
(In reply to comment #7) > Given the age of this bug and that page, I think we can probably just > archive that page and move its replacement contents to one of many wikis, if > necessary. Makes sense. Looks like there's a bug open to archive that already. Will address soon.
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
Closing as part of our bug triage process. This page now directs people to the style guide. http://www.mozilla.org/en-US/styleguide/ For more about the bug triage process, please see https://blog.mozilla.org/websites/2012/11/15/mozilla-org-bug-triage-process/
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: