This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma 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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Param encoding from request" Watch "Param encoding from request" New topic

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

I agree. Here's the link:
subject: Param encoding from request
It's not a secret anymore!