js page passing parameters workaround Chinese garbage problem

Js page delivery, if there is carry Chinese url parameter passing, garbled, the solution is as follows:

Parameters passed to transcoding the two layers plus the encodeURI (the encodeURI (the Name))

And upon receiving the page parameter plus two decoding decodeURI (decodeURI (the Name))

 

Guess you like

Origin www.cnblogs.com/ack6165/p/11387015.html