Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Regular Contributor
Posts: 55
Registered: ‎05-30-2011
My Device: blackberry torch 9800
My Carrier: Airtel

How to read arabic text messages programmatically

Hello,

 

I want to read all the incoming and outgoing text messages.

 

I'm able to read sms in english language but i'm not able to read arabic text messages(the arbic text will converted into symbols so i can't read what was the message).

 

please give me some solution it's urgent..

 

thanx

Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: How to read arabic text messages programmatically

HI,

 

This usually happens because of encoding issue or wrong/missing font issue.

 

As first step, make sure you read the string as UTF-8.

 

If you have the text as byte array (named data), you can try this:

 

String s = new String(data, "UTF-8");

 

If this won't work, try to give us a bit more details.

 

Hope that helps,

 

E.