Parameter values that can be received by server request may lose the following (& symbol and subsequent ' test ') for the following URL arguments:
Java code
Http://192.168.2.108:8080/MealOrder/LoginServlet?userAccount=Test&userPwd=20&test
How to solve it? Use UTF-8 encoding can, recommend the following a Baidu page transcoding small application (choose to search out the first), of course, there are many other ways to get the code transcoding, personal preferences, casual.
Java code
Http://www.baidu.com/s?usm=2&rsv_idx=1&wd=url%E7%BC%96%E7%A0%81%E5%9C%A8%E7%BA%BF%E8%BD%AC%E6%8D%A2 &ie=utf-8&rsv_crq=7&bs=%253c
The need to encode special characters "&" for conversion, get "%26", splicing to the original URL can
Java code
Http://192.168.2.108:8080/MealOrder/LoginServlet?userAccount=Test&userPwd=20%26test
If you pass the address bar directly to the Chinese, what is it like? I don't know ...