A quick solution for submitting Garbled text by Ajax in IE, and submitting Garbled text by ieajax
Haha, I tried so much and it still works with encodeURIComponent !!!!
Add a protection measure to the position of Chinese characters:EncodeURIComponent(Parentid)
Function loadCity (parentid) {var city = '$ {hotel. city}'; $. ajax ({url: './listCity. jspx? Prov = '+ encodeURIComponent (parentid), type: 'get', ype: 'json', timeout: 5000, error: function () {alert (' failed to load the city list! ');}, Success: function (msg) {$ ("# city "). empty (); $. each (eval (msg), function (I, item) {if (item. city = city) {$ ("<option value = '" + item. city + "'selected = 'selected'>" + item. city + "</option> "). appendTo ($ ("# city");} else {$ ("<option value = '" + item. city + "'>" + item. city + "</option> "). appendTo ($ ("# city "));}});}});}
Another method for adding contentType on the Internet seems to be useless. o (too many requests) o alas, I am still reliable ~~
ContentType: 'application/x-www-form-urlencoded; charset = UTF-8 ',
The quick solution for submitting Garbled text via Ajax in IE is to share all the content with you in the editor. I hope you can give us a reference and support for the customer's house.