if insert the received text into database table, are they correct?
Because I had this issue too, when I print the received text to a file I see
the aliens, But in my db it's correct.
For Indian numbers: I write a method to convert them into arabic, here it's:

    public String convertDigits(String text) {
        newText=text.replace('٠', '0');
        newText=text.replace('١', '1');
        newText=text.replace('٢', '2');
        newText=text.replace('٣', '3');
        newText=text.replace('٤', '4');
        newText=text.replace('٥', '5');
        newText=text.replace('٦', '6');
        newText=text.replace('٧', '7');
        newText=text.replace('٨', '8');
        newText=text.replace('٩', '9');
        return newText;
    }

I hope it helps.

Benaiad

On Tue, Jun 16, 2009 at 2:46 PM, Arnie white <[email protected]> wrote:

> Dear all :
> any one can help ,,
> when receiving sms in the kannel for theses numbers
>
> 123456789   AS indian or ????????????? all time i did convert using this in
> my servlet its ok for English but for old numbers still have problem
>
>
> On Tue, Jun 16, 2009 at 9:49 AM, Benaiad <[email protected]> wrote:
>
>> Dear Arnie,
>>
>> Try to convert the received message to utf-8.
>> From my servlet I do like this:
>> String moText = new
>> String(request.getParameter("text").getBytes("ISO-8859-1"), "utf-8");
>>
>> Regards
>> Benaiad
>>
>> On Tue, Jun 16, 2009 at 9:38 AM, Arnie white <[email protected]>wrote:
>>
>>> Dear all :
>>> im trying to receive uncode mssages in kannel ,but its garbage ,is there
>>> any one can help me for this ,
>>>
>>
>>
>

Reply via email to