reading entire encoded URI in servlet
This question already has an answer here:
Instead of escape
use encodeURI
.
The escape() function was deprecated in JavaScript version 1.5.
What is the difference?
escape
— broken, deprecated, do not use, encodes all the characters.
encodeURI
— encodes characters that are not allowed (raw) in URLs (use it to fix up broken URIs if you can't fix them beforehand)
上一篇: 如何将%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82转换为JS中的Unicode
下一篇: 读取servlet中的整个编码URI