I've huge String array to display via using Textview
. This String array contain some anonymous char like ’ , âˆ, Ã, −, ‘ etc. But it has no meaning in English please help me how to decode these char in actual meaning.
I've already use UTF-8 encoding but not work.
private final static Charset UTF8_CHARSET = Charset.forName("UTF-8");
public static String getUTF8Encoded(String targetString) {
String resultant = "";
try {
return new String(encodeUTF8(targetString), UTF8_CHARSET);
} catch (Exception e) {
e.printStackTrace();
return resultant;
}
}
private static final byte[] encodeUTF8(String string) {
return string.getBytes(UTF8_CHARSET);
}