I am using realm to store and retrieve utf-8 for nepali(Devnagari) characters but when retrieving � is also generating which is not a nepali(Devnagari) character and not stored. How to solve this issue? Along with realm I have used Gson and retrofit.
Gson gson = new GsonBuilder().disableHtmlEscaping().create();
final RealmResults<Information> realmObj = realm.where(Information.class).findAll();
if (realmObj != null) {
List<Information> obj = realm.copyFromRealm(realmObj);
String json = gson.toJson(obj);
}
which generates
२५ द���खि ४० वर्षः