Closed
Bug 82628
Opened 24 years ago
Closed 8 years ago
UTF-8 converter is invoked, when unescaping a URL in "Send Page"
Categories
(MailNews Core :: Composition, defect)
MailNews Core
Composition
Tracking
(Not tracked)
RESOLVED
WORKSFORME
Future
People
(Reporter: jbetak, Assigned: smontagu)
References
()
Details
(Keywords: intl)
go to
http://maps.yahoo.com/py/maps.py?
BFCat=&Pyt=Tmap&newFL=Use+Address+Below&addr=326+Galvez+Street&csz=Palo+Alto%
2C+CA+94304-2203&country=us&Get%A0Map=Get+Map
do a send page. when we unescape that url in MsgComposeCommands.js, we invoke
the UTF-8 converter.
from bug 58532 and bug 58980.
About the conversion error, the is a correct behavior because UTF-8 converter
was used for non UTF-8 input.
In nsGlobalWindow::Unescape, UTF-8 was used as a default and a document charset
overrides it when it's available. So in case of 0xA0, if the document charset is
set as "ISO-8859-1" then UTF-8 converter is not used and the conversion should
cause no error. I think compose window charset is set as mail send default
charset (for US build that's "ISO-8859-1"). So I am not sure why UTF-8 converter
was used.
2229 // Get the document character set
2230 charset.AssignWithConversion("UTF-8"); // default to utf-8
2231 if (mDocument) {
2232 nsCOMPtr<nsIDocument> doc(do_QueryInterface(mDocument));
2233
2234 if (doc)
2235 result = doc->GetDocumentCharacterSet(charset);
2236 }
------- Additional Comments From Katsuhiko Momoi 2001-01-05 12:27 -------
We need to have consistent policy on what charset to use for
URL escaping/unescaping. We should agree on a policy about this
taking into account other URL issues in Mozilla.
Reporter | ||
Comment 2•24 years ago
|
||
reposting the URL in the body:
<A HREF="http://maps.yahoo.com/py/maps.py?
BFCat=&Pyt=Tmap&newFL=Use+Address+Below&addr=326+Galvez+Street&csz=Palo+Alto%
2C+CA+94304-2203&country=us&Get%A0Map=Get+Map">http://maps.yahoo.com/py/maps.py?
BFCat=&Pyt=Tmap&newFL=Use+Address+Below&addr=326+Galvez+Street&csz=Palo+Alto%
2C+CA+94304-2203&country=us&Get%A0Map=Get+Map</A>
I also verified that a current build (05242001) still fails here:
http://lxr.mozilla.org/seamonkey/source/mailnews/compose/resources/content/MsgCo
mposeCommands.js#858
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.2
Reporter | ||
Comment 3•24 years ago
|
||
(ftang using jbetak's account)
move to future, I don't think this is critical
Target Milestone: mozilla0.9.2 → Future
Comment 4•23 years ago
|
||
jbetak's contract is up. Bulk move bugs to ftang
Assignee: jbetak → ftang
Status: ASSIGNED → NEW
Updated•23 years ago
|
Status: NEW → ASSIGNED
Updated•20 years ago
|
Product: MailNews → Core
Comment 5•20 years ago
|
||
what a hack. I have not touch mozilla code for 2 years. I didn't read these bugs
for 2 years. And they are still there. Just close them as won't fix to clean up.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
Comment 7•20 years ago
|
||
Mass Re-opening Bugs Frank Tang Closed on Wensday March 02 for no reason, all
the spam is his fault feel free to tar and feather him
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Comment 8•20 years ago
|
||
Reassigning Franks old bugs to Jungshik Shin for triage - Sorry for spam
Assignee: nobody → jshin1987
Status: REOPENED → NEW
Comment 9•18 years ago
|
||
(In reply to comment #0)
> http://maps.yahoo.com/py/maps.py?
> BFCat=&Pyt=Tmap&newFL=Use+Address+Below&addr=326+Galvez+Street&csz=Palo+Alto%
> 2C+CA+94304-2203&country=us&Get%A0Map=Get+Map
This URL is no longer valid; Yahoo Maps no longer puts a "%A0" in the URL string. I'm not sure how to test whether this bug still applies. Since reporter never provided Actual/Expected results, I'm not even sure what to expect -- I'm guessing that the %A0 was converted to %C2%A0, and that further, Yahoo Maps rejected the converted URL when it was fed back.
But I tried this:
https://bugzilla.mozilla.org/query.cgi?No%A0Problem
If I understand correctly, Bugzilla doesn't set an encoding for this page. It defaults to ISO-8859-1 for me, and if I Send Link, the link is set up verbatim in the compose window. Same happens when I force the page encoding to UTF-8.
This within Seamonkey 1.5a-1123, and the same with Firefox 2.0.0.1-1129 linking to Thunderbird 3a1-1206.
WFM, I guess. Jungshik, do you have any thoughts about this?
Updated•17 years ago
|
Assignee: jshin1987 → smontagu
QA Contact: ji → composition
Updated•17 years ago
|
Product: Core → MailNews Core
![]() |
||
Comment 10•8 years ago
|
||
Code is now here and obviously has seen a lot of churn after original post: https://hg.mozilla.org/comm-central/file/tip/mail/components/compose/content/MsgComposeCommands.js
Let's set to WFM per last comment.
Status: NEW → RESOLVED
Closed: 20 years ago → 8 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•