I am making an android app which parses XML. Since XML data contains HTML hexes (&#<dec value>), I need to convert them and then show them in my app. When I am passing 8217 to my code, it returns me some chinese/japanese (I'm not sure) character.
Here is my code.
public char decToChar(String dec){
Int decimal = Integer.parseInt(dec, 16);
return (char)decimal;
}
I am passing value '8217' to this method and it returns chinese character instead of '.
Do anyone have any idea why its not working?