Ie6-11 garbled when copying to Firefox or Chrome using Location.href submit link

Source: Internet
Author: User

This is in the development of international Ticket query page encountered a problem, the test engineer in IE to perform the query operation, and then the query URL assigned to the Firefox address bar, Firefox opened after it became garbled.

1. IE browser, select the origin, the departure date, and then click on the query

2. Jump to the query page, assign the URL in IE browser

3. Copy to Firefox/chrome browser address bar, you will find garbled

Compared to see the URL of IE and Firefox was found to be because the location.href way in IE did not do URI encoding, changed to form after the submission of the good.

Ie6-11

http://ijipiao.jd.com/international/query.action?_charset_=gbk&journeyType=RT&gjdepCity= Beijing &gjarrcity= Hong Kong &gjdepdate=2015-01-01&firstjourney.depcityname= Beijing & Firstjourney.arrcityname= Chinese/pinyin &firstjourney.depdate=&secondjourney.depcityname= Chinese/Pinyin &secondjourney.arrcityname= Chinese/pinyin &secondjourney.depdate=&gjarrdate=2015-01-05&seattype =economy&passengertype=0&adtnum=1&chdnum=0&carrier=&carriershow= Unlimited &availablejourney= Undefined&directonly=false

Firefox/chrome

http://ijipiao.jd.com/international/query.action?_charset_=gbk&journeyType=RT&gjdepCity=%b1%b1%be% A9&gjarrcity=%cf%e3%b8%db&gjdepdate=2015-01-02&firstjourney.depcityname=%B1%B1% BE%A9&firstJourney.arrCityName=%D6%D0%CE%C4/%C6%B4%D2%F4&firstJourney.depDate=& Secondjourney.depcityname=%d6%d0%ce%c4/%c6%b4%d2%f4&secondjourney.arrcityname=%d6%d0%ce%c4/%c6%b4%d2%f4 &secondjourney.depdate=&gjarrdate=2015-01-07&seattype=economy&passengertype=0&adtnum=1 &chdnum=0&carrier=&carriershow=%b2%bb%cf%de&availablejourney=undefined&directonly=false

Ie6-11 garbled when copying to Firefox or Chrome using Location.href submit link

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.