This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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: 90
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
 
GeeCON Prague 2014
 
subject: Param encoding from request