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)
www.mozilla.org
General
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: justdave, Assigned: fantasai.bugs)
References
()
Details
Attachments
(1 file)
|
1.76 KB,
patch
|
Details | Diff | Splinter Review |
<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 —.
</quote>
Shouldn't we be telling people to use UTF-8?
Assignee: mozilla.webmaster → fantasai.bugs
Status: NEW → ASSIGNED
| Reporter | ||
Comment 3•21 years ago
|
||
> 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.
Comment 4•21 years ago
|
||
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
Comment 5•21 years ago
|
||
> 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?
Comment 6•21 years ago
|
||
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.
Updated•20 years ago
|
QA Contact: danielwang → www-mozilla-org
Updated•17 years ago
|
Product: mozilla.org → Websites
Comment 7•15 years ago
|
||
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.
Comment 8•14 years ago
|
||
(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.
Updated•13 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
Comment 9•13 years ago
|
||
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.
Description
•