php -r "echo urlencode('["IM"]'); "
The result is% 5BIM% 5D, because the urlencode function actually only accepts a string [IM]as its input. and in java
String text = URLEncoder.encode('["IM"]',"UTF-8");
Actually passed string: ["IM"]that generates a value %22that is an encoded string for the "quotation mark.
source
share