In my program, when my servlet get the parameters, it should make an urlConnection to php, and get the created xml back. Everything is fine but it seems my program will not support special characters. I believe the key point is the servlet. But what should I do to let the servlet support special characters? For example:
String urlString = "XXXXXXX";
URL url= new URL(urlString);
URLConnection connection = url.openConnection();
I hope the url which will connect to .php can be something like:
http://XXX.php?name=José&type=artist
But the result showed me seems the url changed to:
http://XXX.php?name=Jos&type=artist
It ignored the special character é. What should I do?