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)

defect
Not set
normal

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.
*** Bug 58890 has been marked as a duplicate of this bug. ***
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
(ftang using jbetak's account) move to future, I don't think this is critical
Target Milestone: mozilla0.9.2 → Future
jbetak's contract is up. Bulk move bugs to ftang
Assignee: jbetak → ftang
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
QA Contact: sheelar → ji
Keywords: intl
Product: MailNews → Core
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
Mass Reassign Please excuse the spam
Assignee: ftang → nobody
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 → ---
Reassigning Franks old bugs to Jungshik Shin for triage - Sorry for spam
Assignee: nobody → jshin1987
Status: REOPENED → NEW
(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?
Assignee: jshin1987 → smontagu
QA Contact: ji → composition
Product: Core → MailNews Core
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 ago8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.