Sending Arabic Text by Email
I have a problem sending arabic text by email using java language.
this is my post in properties file:
mail.send = تجربة
I am using this syntax in jave:
ResourceBundle dq_resource = ResourceBundle.getBundle("nls.myfile_ar");
String text= dq_resource.getString("mail.send")
but when i received the email i have this text: ا ??????????? ¹
I am trying also in java with this code:
String text= new String(dq_resource.getString("mail.send").getBytes(),Charset.forName("UTF-8"));
but I have this text in the mail:
ا ??? ض? ع
+3
source to share