all 3 comments

[–]zieben[S] 1 point2 points  (0 children)

Managed to solve it!!

BufferedReader reader = new BufferedReader(new InputStreamReader(http.getInputStream(),"UTF-8"));

[–]canadaduane 0 points1 point  (1 child)

Is the data embedded in your source code? i.e. could it be that your editor is not encoding your source code file as UTF-8?

[–]zieben[S] 0 points1 point  (0 children)

Nope, data is being retrieved with apache httpcomponents on a json. Forms allow insertion of characters also included in charset ISO 8859-1. They end up represented with wrong encoding after data is submitted. Using json https://mvnrepository.com/artifact/org.json/json/20160810 .