Forums Register Login

utf-8 data with get method not working but post method working.

+Pie Number of slices to send: Send
Hi,

I am able to get utf-8 data using POST method but GET method giving junk data

I have attached source code.

I need to get utf-8 data from GET method.


-----------------------------

----------------------------


- Thanks
Zohaib.
+Pie Number of slices to send: Send
java Ranch welcomes you zohaib,

Always we need to read any input using the right encoding. This requires that you instruct the ServletRequest object what encoding to use before you read any data from it. Once you read data from the Request, the encoding is set forever.
Try using request.setCharacterEncoding("UTF-8")

might this may help you
I am going to test your electrical conductivity with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3600 times.
Similar Threads
Fieldset is not working
Fieldset is not working
tiles and <sx:autocompleter>
Multipart request problem
how to get utf-8 data from query string in JSP
Why should you try IntelliJ IDEA ?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:07:50.