I have some problems when making HTTP GETs.
When the page text has a special character, the response becomes distorted.
Example:
os participantes deverão:
when the original text was os participantes deverão
.
The code I'm using to do this get is as follows:
try {
URL url = new URL("***Url***");
BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream()));
String strTemp = "";
while (null != (strTemp = br.readLine())) {
System.out.println(strTemp);
}
} catch (Exception ex) {
ex.printStackTrace();
}
Any idea what might be causing this problem?