Good afternoon. I have a Datasnap Rest created with Delphi Tokyo which returns a json that will be consumed by an android application, in android I am using the code below with urlConnection.
StringBuilder result = new StringBuilder();
try {
URL url = new URL(metodo);
urlConnection = (HttpURLConnection) url.openConnection();
InputStream is = new BufferedInputStream(urlConnection.getInputStream());
BufferedReader reader = new BufferedReader(new InputStreamReader(is, "utf-8"));
String line;
while ((line = reader.readLine()) != null) {
result.append(line);
}
}catch( Exception e) {
e.printStackTrace();
}
finally {
urlConnection.disconnect();
}
but in the final result the characters with cedilla or accent appear as codes, ex: Ç = > \ u00C7, I already have two days searching the internet but nothing worked, I found many people saying that they managed to get around the situation but the ideal would be to understand and resolve this issue.
using the RestDebugger tool provided by the embarcadero the data is normally loaded conform the images: Thanks in advance for any information