aspose file tools*
The moose likes BEA/Weblogic and the fly likes Internationalization problem in req.getParameter () Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Internationalization problem in req.getParameter ()" Watch "Internationalization problem in req.getParameter ()" New topic
Author

Internationalization problem in req.getParameter ()

Siddharth bal sharma
Greenhorn

Joined: Apr 27, 2006
Posts: 8
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.

Is anyone aware of this behavior?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Internationalization problem in req.getParameter ()