please someone help me , i try read arabic string from json file
the code i use it , i try read multi-lines of arabic language
public String loadJSONFromAsset() {
String json = null;
try {
InputStream is = getAssets().open("horo_scop.txt");
int size = is.available();
byte[] buffer = new byte[size];
is.read(buffer);
is.close();
json = new String(buffer, "UTF_8");
System.out.println("horo json file " + json);
} catch (IOException ex) {
ex.printStackTrace();
return null;
}
return json;
}
it print arabic like that "????? ???"
how can i fix it