Closed
Bug 66807
Opened 25 years ago
Closed 25 years ago
bad xsl template generate encoding="UTF-16" for non UTF-16 page cause garbage is displayed
Categories
(Core :: Internationalization, defect, P3)
Core
Internationalization
Tracking
()
VERIFIED
FIXED
mozilla0.9
People
(Reporter: wallym, Assigned: nhottanscp)
References
()
Details
(Keywords: intl)
Attachments
(3 files)
|
53.03 KB,
image/jpeg
|
Details | |
|
64.24 KB,
image/jpeg
|
Details | |
|
1.10 KB,
patch
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 0.7) Gecko/20010109
BuildID: 2001010901
The frame on the right hand side of the URL above shows garbage. IE 5.5 and
earlier show correctly along with Netscape 4.7x and earlier.
Reproducible: Always
Steps to Reproduce:
Navigate to the above url.
Actual Results: garbage is displayed on the right hand side
Expected Results: it should show a response in english.
Comment 1•25 years ago
|
||
WFM using 2001012504 on W2k. Wally, could you try to reproduce this problem with
a newer build? If the problem still occurs, a screenshot or a more accurate
description of "garbage" would be helpful. Thanks for testing Mozilla!
Comment 2•25 years ago
|
||
I can confirm this bug with win2k build 2001012708
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•25 years ago
|
||
Comment 4•25 years ago
|
||
Comment 5•25 years ago
|
||
OK, it seems that using WebWasher keeps this bug from occuring. Using no
proxies, I can reproduce, too. I'll compare the pages with and w/o WebWasher and
try to find the culprit.
Comment 6•25 years ago
|
||
Comparing the two pages with and w/o WebWasher show no relevant differences.
The problem seems to be connected with character coding: At
http://www.popularcategories.com/getxml.asp?keywords=pets (the frame that is
garbage), I am using "Western (ISO-8859-1)". If I selected that coding in the
menu again (it seems to be already selected), the page reloads and displays ok.
Just reloading the page produces the garbage again.
testing the URL with linux 2001012621 causes a freeze.
Last msg in console: xmlencoding detect- UTF-16
After that xfs jumps to 75% CPU and remained there, going nowhere.
I let it hang for 5 minutes - then had to kill moz.
Comment 8•25 years ago
|
||
updating component
Assignee: asa → nhotta
Component: Browser-General → Internationalization
QA Contact: doronr → teruko
| Assignee | ||
Comment 9•25 years ago
|
||
<?xml version="1.0" encoding="UTF-16"?>
Encoding and actual content does not match.
Reassign to ftang. I don't remember if the similar bug was marked as INVALID.
Assignee: nhotta → ftang
Comment 10•25 years ago
|
||
http://bugzilla.mozilla.org/show_bug.cgi?id=56626
It was resolve as Wontfix.
Comment 11•25 years ago
|
||
56626 is about HTML and this one is about xml. mark it as P2.
Status: NEW → ASSIGNED
Priority: -- → P2
Comment 12•25 years ago
|
||
to fix this, we need to add some code in htmlparser/src/nsParser.cpp
2190 if(count >0) {
2191 firstXbytes.Mid(oCharset,(encStart+1), count);
2192 oCharsetSource= kCharsetFromMetaTag;
2193 }
to compare with "UTF-16" first. If it is equal to UTF-16, then we should ignore
it.
| Reporter | ||
Comment 13•25 years ago
|
||
I have changed the xsl file that is used to generate this HTML output. This
viewing problem no longer occurs with Mozilla .7 build. I am downloading the
latest build to verify.
Wally
Comment 14•25 years ago
|
||
nhotta, can you help ?
Assignee: ftang → nhotta
Status: ASSIGNED → NEW
Summary: garbage is displayed → bad xsl template generate encoding="UTF-16" for non UTF-16 page cause garbage is displayed
| Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Keywords: intl
OS: Windows 2000 → All
Priority: P2 → P3
Hardware: Other → All
Target Milestone: --- → mozilla0.9
| Reporter | ||
Comment 15•25 years ago
|
||
adding the tag <xsl:output method="html" /> to the xsl file removed the utf-16
encoding tag from the html output. This has resolved the display output. I
noticed in the bugreports that there are other instances of this problem. You
might want to send them this fix.
Wally
| Assignee | ||
Comment 17•25 years ago
|
||
| Assignee | ||
Comment 18•25 years ago
|
||
r=ftang
Comment 19•25 years ago
|
||
sr=erik
| Assignee | ||
Comment 20•25 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 21•25 years ago
|
||
This seems to work now (build 20010418 Win98 and 20010423 linux). Teruko, can
you check if this bug fix has any side effects? Changing QA contact to teruko
for now.
QA Contact: andreasb → teruko
You need to log in
before you can comment on or make changes to this bug.
Description
•