Processing Method of Chinese Parameters Transferred by URL in jsp

  • 2021-07-06 11:33:14
  • OfStack

Use encodeURI (encodeURI (Chinese)) in url of the page to encode Chinese, and use URLDecoder. decode (Chinese, "UTF-8") in java program of the server to decode it.
If you need to pass +, #,? encodeURIComponent (encodeURIComponent (Chinese)) can be used, and the server decoding method is the same as encodeURI decoding.


Related articles: