In Ajax, the post escape cannot be converted to some special characters, such as: + % &, so it must be escaped.
Otherwise, this character will be lost during HTTP transmission. In this case, you must manually convert "+" to "% 2B ", the characters to be manually converted include "&"-> "% 26", "%"-> "% 25. These special characters cannot be encoded using the Javascript encodeuri (). Therefore, even if you are "stupid", manual conversion is impossible. However, apart from the three stubborn guys, it is not found that other characters also need to be converted when the XML text is submitted in post mode.
If (password! = NULL & password! = "") <Br/>{< br/> Password = password. replace (/\ +/g, "% 2B"); <br/> Password = password. replace (// G, "% 26"); <br/>}< br/> If (username! = NULL & username! = "") <Br/>{< br/> username = username. replace (/\ +/g, "% 2B"); <br/> username = username. replace (/\ &/g, "% 26"); <br/>}</P> <p> Note: + is a metacharacter of a regular expression, \ escape is required. & escape is not required.