Closed
Bug 845743
Opened 12 years ago
Closed 12 years ago
Firefox 19.0 does not support BIG5-HKSCS encoding. Version 18.0 does
Categories
(Core :: Internationalization, defect)
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: arbiant, Assigned: emk)
References
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
157 bytes,
text/html; charset=big5-hkscs
|
Details | |
2.45 KB,
patch
|
smontagu
:
review+
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:18.0) Gecko/20100101 Firefox/18.0
Build ID: 20121231071231
Steps to reproduce:
does not show HK special character although webpage set with charset=BIG5-HKSCS
Actual results:
鰂 show as 鰂
Expected results:
should show as 鰂 under charset=BIG5-HKSCS. It works on firefox 18.0 but not version 19.0
The 3rd character is a big5 hkscs character: 鰂 (show correct on firefox v18.0 and Google Chrome). show in Firefox v19 as 裵 (big5).
sorry, my earlier explanation is not quite write. when we enter in 鰂 inside a form (charset=Big5-HKSCS), when server received it translate as 鰂 because Firefox 19.0 treat Big5-HKSCS as Big5, as it not part of Big5 that is why server received it as 'unicode' 鰂
Attachment #718907 -
Attachment mime type: text/plain → text/html
Comment 4•12 years ago
|
||
Comment on attachment 718896 [details]
Testcase
This testcase isn't useful, as the file is actually in UTF-16LE (despite its charset claim), and moreover it represents the Chinese character with a Unicode numeric entity, so the page's own encoding is not relevant.
Attachment #718896 -
Attachment is obsolete: true
Comment 5•12 years ago
|
||
Comment on attachment 718907 [details]
3rd character is a big5-hkscs.
This testcase displays correctly for me (with FF18 on Windows, or with Nightly on OS X) but only if I explicitly choose the Big5-HKSCS encoding from the Character Encoding submenu; when it is initially opened, it displays complete junk: "»´ä‘o³½¯F ". Maybe because bugzilla serves the testcase with
Content-Type:text/html; name="test-big5-hkscs.html"; charset=windows-1252
which is clearly the wrong charset for the file.
(Possibly the behavior varies if you're running a localized Chinese version of Firefox, or have your system locale set to Chinese?)
Comment 6•12 years ago
|
||
IIRC, the Encoding Standard unifies big5 and big5-hkscs based on research about existing content and based on IE not recognizing the big5-hkscs label.
Reporter, is this breaking a real site somewhere that works in other browsers?
(If this is about a page you authored yourself, please use UTF-8 instead of a legacy encoding.)
just need to open the attached file test-big5-hkscs.html on FF19.
the question is, why it works on FF18, and does not works in FF19?
something might has set wrongly there.
If Firefox accept this as a bug and do not want to fixed this, we will just use Google Chrome and forget about FF.
Jonathan Kew, as explained it works for FF18 but not FF19.
please try on FF19. you will see the 3rd character is wrong.
Updated•12 years ago
|
Attachment #718907 -
Attachment mime type: text/html → text/html; charset=big5-hkscs
Updated•12 years ago
|
Component: Layout: Text → Internationalization
Comment 8•12 years ago
|
||
Reporter, is this breaking a Web site somewhere? Which site? Is that site maintained by you?
Does the page work in a Hong Kong-localized version of IE? Does it work in Taiwan-localized or en-US-localized IE?
Flags: needinfo?(arbiant)
Reporter | ||
Comment 10•12 years ago
|
||
it's on our internal CRM. long history, data originated big5-hkscs from old desktop database system.
then today our user realize something wrong and reported this problem.
we don't use IE and only use FF.
if FF don't support HKSCS, we have no choice but to go to google chrome.
yes, we are looking at converting the data to utf.
by then, we will just use available solution.
just one question, why FF19 suddenly stop support HKSCS?
Flags: needinfo?(arbiant)
Assignee | ||
Comment 11•12 years ago
|
||
(In reply to Henri Sivonen (:hsivonen) from comment #9)
> Probably caused by bug 801402.
Yes, I changed it because Encoding Standard defines big5-hkscs as just an alias of big5.
Reporter, please file a spec bug and convince a spec editor of the demand of big5-hkscs as a separate encoding.
https://www.w3.org/Bugs/Public/enter_bug.cgi?product=WHATWG&component=Encoding
Comment 12•12 years ago
|
||
I think we should fix this and not wait for the Encoding Standard.
Comment 13•12 years ago
|
||
I'd agree.
(FWIW, if we were going to "unify big5 and big5-hkscs" - which may not be a good idea after all - it seems a bit odd to still have Big5-HKSCS available in the menu, distinct from Big5, yet -not- to recognize it in the charset metadata. I'd have expected that either we support that charset just as we used to, or we eliminate it completely. Continuing to "support" it via the UI yet mapping it to Big5 when it occurs in charset metadata seems a bit confusing.)
Assignee | ||
Comment 14•12 years ago
|
||
Annevk sees here, so the spec will be updated shortly.
Assignee: nobody → VYV03354
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #718991 -
Flags: review?(smontagu)
Assignee | ||
Comment 15•12 years ago
|
||
(In reply to Jonathan Kew (:jfkthame) from comment #13)
> (FWIW, if we were going to "unify big5 and big5-hkscs" - which may not be a
> good idea after all - it seems a bit odd to still have Big5-HKSCS available
> in the menu, distinct from Big5, yet -not- to recognize it in the charset
> metadata. I'd have expected that either we support that charset just as we
> used to, or we eliminate it completely. Continuing to "support" it via the
> UI yet mapping it to Big5 when it occurs in charset metadata seems a bit
> confusing.)
I filed bug 805374 to match them.
Assignee | ||
Comment 16•12 years ago
|
||
This revert should be propagated as soon as possible.
tracking-firefox20:
--- → ?
tracking-firefox21:
--- → ?
tracking-firefox20:
--- → ?
tracking-firefox21:
--- → ?
Comment 18•12 years ago
|
||
Comment on attachment 718991 [details] [diff] [review]
Support Big5-HKSCS as a separate encoding again
Review of attachment 718991 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks
Attachment #718991 -
Flags: review?(smontagu) → review+
Comment 19•12 years ago
|
||
If there are sighting of broken public Web content or information about other broken intranets, please make it known here instead of just concluding that the bug has been reported already.
Assignee | ||
Comment 20•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Flags: in-testsuite+
Updated•12 years ago
|
status-firefox20:
--- → affected
status-firefox21:
--- → affected
Updated•12 years ago
|
Keywords: regression
Updated•12 years ago
|
status-firefox19:
--- → affected
Comment 21•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Assignee | ||
Comment 22•12 years ago
|
||
Comment on attachment 718991 [details] [diff] [review]
Support Big5-HKSCS as a separate encoding again
[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 801402
User impact if declined: Some web pages encoded in Big5-HKSCS will not work correctly.
Testing completed (on m-c, etc.): on m-c
Risk to taking this patch (and alternatives if risky): very low
String or UUID changes made by this patch: none
Attachment #718991 -
Flags: approval-mozilla-beta?
Attachment #718991 -
Flags: approval-mozilla-aurora?
Comment 23•12 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #22)
> User impact if declined: Some web pages
Well, evidence so far is of one intranet app, only.
Comment 24•12 years ago
|
||
http://w3techs.com/technologies/details/en-b5hkscs/all/all lists a few public websites using Big5-HKSCS.
Not every such page is necessarily affected, as most codepoints in Big5-HKSCS will be the same when interpreted as Big5 (AIUI), but there may be occasional characters that appear incorrectly.
Comment 25•12 years ago
|
||
Those pages were studied as far as I know. See also:
http://lists.w3.org/Archives/Public/public-whatwg-archive/2012Apr/thread.html#msg42
It's not entirely clear to me how we support big5 though, if we implemented the changes suggested in the Encoding Standard or if we kept our old weird variant.
Updated•12 years ago
|
Attachment #718991 -
Flags: approval-mozilla-beta?
Attachment #718991 -
Flags: approval-mozilla-beta+
Attachment #718991 -
Flags: approval-mozilla-aurora?
Attachment #718991 -
Flags: approval-mozilla-aurora+
Updated•12 years ago
|
Assignee | ||
Comment 26•12 years ago
|
||
Comment 27•12 years ago
|
||
Verified the issue for Firefox 19.0 (20130215130331). By using the testcase from comment 2, the 3rd character is 裵.
Verified the fix for Firefox 20.0 Beta 3 (20130305164032), the 3rd character is 鰂, as expected.
Comment 28•12 years ago
|
||
Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20100101 Firefox/21.0
Build ID: 20130423212553
Verified as fixed on Firefox 21 beta 3: the shown character is: 鰂.
You need to log in
before you can comment on or make changes to this bug.
Description
•