I have the String  String hex = "6174656ec3a7c3a36f"; and i wanna get the String output = "atenção" but in my test i only get  String output = "aten????o";
what i m doing wrong?
String hex = "6174656ec3a7c3a36f";
StringBuilder output = new StringBuilder();
for (int i = 0; i < hex.length(); i+=2) {
  String str = hex.substring(i, i+2);
  output.append((char)Integer.parseInt(str, 16));
} 
System.out.println(output); //here is the output "aten????o"
 
     
     
     
    