JQuery AJAX Call with Unicode. Proper way to POST Unicode data? -
I have a page that posts AJAX to the server, and often the data will be unicode. It works most of the time, but it appears that sometimes it is breaking and I can not get the answer anywhere. I'm using encoder, but I'm not sure it's right. Here is an example of code: $ .ajax ({type: "POST", Url: "SomePage.php", Data: "val1 =" + Encodeuri (unicode-navable) + "& amp; Presentation =" + someUnicodeVariable, success: function (msg) {}}); I think what's happening sometimes in a Unicode character is a & amp; Thank you. post-text" itemprop = "text"> here A good way to compare all the encoding methods. Finally, the encodurac component () method should be used in most cases when a component of a URI is encoded, this method will encode some characters Which will normally be identified as a special character for the URI so that several components can be included. Note that this method do...