Internationalization problem in req.getParameter ()
Siddharth bal sharma
posted 7 years ago
In Weblogic, req.getParameter() gives encoded data which we need to decode to get value【Number坑坼】string
But in websphere, req.getParameter() directly gives 【Number坑坼】[Looks like WebSphere handles decoding part before returning data]. So the code for decoding logic fails as it tries to decode the data which is already decoded.
In websphere,-Ddefault.client.encoding=UTF-8 argument is specified as a generic JVM argument.If we remove this argument the application is running fine.