简体   繁体   中英

character decoding failed error

I'm unable to understand why there occurs character decoding failed warning at my server.

May 19, 2012 2:56:57 AM org.apache.tomcat.util.http.Parameters processParameters

WARNING: Parameters: Character decoding failed. Parameter 'width' with value '100%' has been ignored. Note that the name and value quoted here may corrupted due to the failed decoding. Use debug level logging to see the original, non-corrupted values.

Well, the % at the end signifies a bad encoding. If properly encoded, it should really be followed by two hexadecimal characters.

if 'Parameters: Character decoding failed' warning include % issue then we can use given below code, no need to do any thing. I am using this in my ajax function.

var productPromoCodeIdParam = productPromoCodeId.replace('%','%25');

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM