Arabic character encoding issue
807589Aug 15 2008 — edited Aug 15 2008Hi,
Our JMS plugin receives xml text messages encoded in ISO-8859-1. Messages are originally in ISO-8859-6 and converted to ISO-8859-1 before put in the queue. I convert the message to ISO-8859-6 on receipt as below.
For some unknown reason, some of the arabic characters show ? marks but some gets properly converted.
���� � ������ original
��?�� ������ after conversion
Our plugin runs on Solaris 10. JDK used is 1.5. Solaris local set to en_US.ISO8859-15
Code
String in = ((TextMessage)message).getText ();
String msgISO6 = new String (in.getBytes("ISO-8859-1"), "ISO-8859-6");
Does anyone have any thoughts on the possible cause of the issue ?
Thanks in advance
Sohan