I'm have a problem to decode and encode String,
My program reads String Value Hungr\u00EDa
from Response webservice, and then i need translate this value to Hungría
.. I can't understand how to works. but when I send string into webservice request I need encode the value Hungría
to Hungr\u00EDa
.
String input = "Hungr\u00EDa";
logger.info("UTF8test.decodeUTF8: "+new String(input.getBytes(),Charset.forName("UTF-8"))); //output is Hungr?a, updated to UTF-8