1
I’m having some trouble doing Gets HTTP.
When the page text has some special character, the answer ends up deforming.
Example:
os participantes deverão:
when the original text was os participantes deverão
.
The code I’m using to make 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?
It worked for me. Thank you.
– Lucas Schneider