Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Arabic character encoding issue

807589Aug 15 2008 — edited Aug 15 2008
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2008
Added on Aug 15 2008
1 comment
984 views