Closed
Bug 274312
Opened 20 years ago
Closed 18 years ago
Applet parameters with non-ascii characters are garbled
Categories
(Core Graveyard :: Java: OJI, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: bugzilla.box, Assigned: yuanyi21)
References
()
Details
(Keywords: intl, relnote)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0
Parameters containing international characters are not passed correctly to Java
applets. It appears that even for pages using ISO-8859-1 as character set, UTF-8
is used as parameter encoding.
This error seems to Mac OS X specific; Firefox on Windows passes arguments
correctly.
The error consistently occurs with Mozilla 1.7.3, Firefox 1.0 and Camino 0.8.2.
Reproducible: Always
Steps to Reproduce:
Test case is attached. Open test.html; it will display 2 lines. The first line
shows the parameter as it was passed in, the second line is the same text after
brute force UTF-8 conversion.
Actual Results:
Garbled text in the first line (looks like UTF because you can see the escape
character 0xC3)
Correct rendering in the second line
Expected Results:
Correct rendering of "ÄÖÜ" in the first line
Test case will be attached after posting this report.
Reporter | ||
Comment 1•20 years ago
|
||
Reporter | ||
Comment 2•20 years ago
|
||
Comment 3•20 years ago
|
||
It seems like applet parameters are converted to Unicode as if they're in the
locale encoding (UTF-8 on Mac OS X, Windows-1255 on Hebrew Windows) instead of
the document encoding. Need more testing.
Comment 4•20 years ago
|
||
I was wrong and it's Mac-specific. On Windows, it works fine. On Mac, both suite
and firefox have the same problem. However, in my tests, both 'good' and 'bad'
are rendered as '??' while Safari has no problem. If it's an issue with Java VM
on OS X, Safari should have the same problem, but it doesn't.
Status: UNCONFIRMED → ASSIGNED
Component: General → Java: OJI
Ever confirmed: true
Keywords: intl
Product: Firefox → Core
Version: unspecified → Trunk
Comment 5•20 years ago
|
||
jshin: we don't use the same jvm safari uses (1.3.1carbon vs 1.4.2cocoa).
However, if you get the same results with the java-embeding-plugin:
http://javaplugin.sourceforge.net/
your conclusion should be true.
Comment 6•20 years ago
|
||
It turned out to be a Java VM issue. Safari uses the most recent (1.4.2 on Mac
OS 10.3.7) while Mozilla suite and firefox use the outdated 1.3.1. The way to
change this is to install OS X Java plugin available at
http://javaplugin.sourceforge.net.
With that installed, everything works as expected.
This is not mentioned in the release note for 1.7.5 and 1.8a5
(http://www.mozilla.org/releases/mozilla1.8a5/installation-extras.html#extras_java).
Neither is it in firefox 1.0 release notes
(http://www.mozilla.org/product/firefox/releases/1.0.html)
This should be release-noted.
Keywords: relnote
Comment 7•20 years ago
|
||
asa, I went ahead and added a link to Java embedding plugin to 1.7.5 and 1.8a5
release notes, but I'm not quite sure where to add it in ff 1.0 release notes.
Can you take care of it?
![]() |
||
Comment 8•20 years ago
|
||
So is this invalid then?
Comment 9•20 years ago
|
||
I'm not sure it's invalid.
It might be a conversion error in the current plugin that is corrected in the
JEP plugin.
The JEP can be set up to link to java 1.3 and not to java 1.4, we can use that
to make sure.
But even if that case, it would be fixed by replacing the current, full of bug
java plug-in by the JEP.
Comment 10•19 years ago
|
||
Invalid or not, I'm pretty sure that Blake Ross isn't going to fix it, and general@firefox.bugs isn't going to QA it.
Assignee: firefox → yuanyi21
Status: ASSIGNED → NEW
QA Contact: general → zhayupeng
WFM with JEP 0.9.6.2.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•