Java : Character decoding failed [How to Solve]

Error Messages: org.apache.tomcat.util.http.Parameters [DirectJDKLog.java : 173] Character decoding failed. Parameter [param] with value [] has been ignored. Note that the name and value quoted here may be corrupted due to the failed decoding. Use debug level logging to see the original, non-corrupted values.
Note: further occurrences of Parameter errors will be logged at DEBUG level.
Cause: The http interface request contains % in the parameters, and the encoding is wrong, causing the data transmission to be empty.
Solution: param.replaceAll(“%” , “%25”);

Similar Posts: