Tag: Enc appears transfer record BSP com pos = = Body
The AJAX Request API interface transmits the past data containing special characters, and the AJAX request fails with a 500 error.
Suppose you want to post the data for the past: ==>> {a: ' [email protected][email protected][email protected][email protected]#$#{}|> <? ":": "'}
Solution 1:
Json.stringify (data)
This solution does not need to be processed in the background.
Note: However, there are still 500 cases.
Solution 2:
The foreground processing data: encodeuricomponent (data);
Post-processing of receiving data in the background: a= Server.urldecode (a);
This essay is my study work record, if there is doubt welcome in the following comments, reproduced please indicate the source.
If you have help, please move the mouse to the bottom right to a praise, your support is my biggest motivation.
Ajax Commit data 500 error with special characters