| Author |
How to convert query parameter of an url to UTF-8 format.
|
saumyadipa kar
Greenhorn
Joined: Sep 08, 2010
Posts: 1
|
|
Hi,
My question is
How to convert query parameter of an url to UTF-8 format.
I have an url string which containing some query parameters of Non Ascii character.When I covert these non Ascii character to UTF-8,
it becomes either "?" or some square symbols.
I want the non ascii character should maintain its state after conversion.
Please suggest some solution for this.
Regards,
Saumya
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
Welcome to the Ranch!
You can use URLEncoder and URLDecoder for this. Both allow you to specify the encoding then encoding / decoding.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: How to convert query parameter of an url to UTF-8 format.
|
|
|