I have JsonObject which i should serialize and send it’s data to certain user by( Java mail api) the jons item values contain non-english symbols and when i send mail to certain user he or she gets this text:
á?¨á??á??á?¡á?¬á??á? á??á?? á?¨á??á??á??á??á??á?? á??á??á??á??á?ªá?®á??á??á??á??á??
á??á??á??á?£á??á??á??á?¢á?¡á?? á?¡á??á??á??á??á??á?¢á??á??á??á??á??á?ªá??á?? á??á??á??á??:0
á??á??á??á?£á??á??á??á?¢á??á?¡ á??á??á??á?¢á??á??á?¢á??:á?¡á??á??á??á??á??á?¢á??á?¤á??á??á??á?ªá??á?? á??á??á??á??:0 á??á? á??á??á??á??á??á??á??á?ªá??á??á?¡ á?¡á??á?®á??á??á??:null á??á??á??á??á??á?¢á??á? á??:null
i have added function to encode string with utf-8 in my java delegate code, here it is
public static String convertToUTF8(String s) {
String out = null;
try {
out = new String(s.getBytes(“UTF-8”), “ISO-8859-1”);
} catch (java.io.UnsupportedEncodingException e) {
return null;
}
return out;
}
i have also changed text encoding into my eclipse-properties-workspace but nothing is helpful, what should i change to be able to send normal text via message?
@kristin you are always helpfull to me, do you have any idea about it?