This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Param encoding from request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Param encoding from request" Watch "Param encoding from request" New topic
Author

Param encoding from request

Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 92
Hello all I have a problem with Linux/windows encoding.

I recover a String value from request which is a product price (in my application)
But when I receive the price from Linux, It's work correctly with following code:



I correctly get "2 400" but when I try with windows I get for exemple following value "2 400"
I found a old code which do:


But with this previous encoding it's doesn't correctly format my float "2 400" with linux ...

any one have an idea what I can use in order to work with twice system ? I cannot modify JSP, or request encoding

great thank and best regarde


SCJP 5, SCDJWS 5
http://adrien-ruffie.blogspot.com
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Param encoding from request
 
It's not a secret anymore!