I think I misunderstood your problem to begin with.

Am I correct that you have an sms-service that replies with a text and you
want that reply to be encoded in Arabic writing?
And also: You are able to send Arabic writing when you use the sendsms
interface?

If the above is true, then your solution:

Set max-messages = 0 and omit-empty = true in your group = sms-service.
Then, instead of outputting the text in the sms-service, send it via the
sendsms interface to the number '%P' (or '%p', I forgot which is which).

== Rene


-----Original Message-----
From: Hammad [mailto:[email protected]] 
Sent: Monday, 16 May, 2011 13:28
To: Rene Kluwen
Cc: [email protected]
Subject: Re: Unicode Characters::Support Arabic in SMS

hi,
Its no use. I've tried with both but of no use. Any other ideas? When
checked through browser, it works fine.

On 5/16/11, Rene Kluwen <[email protected]> wrote:
> Try changing the value of mo-recode in group = smsbox. Not sure if it
helps,
> but worth a try.
>
>
>
> =+= Rene
>
>
>
> From: [email protected] [mailto:[email protected]] On Behalf
> Of Hammad
> Sent: Monday, 16 May, 2011 04:47
> To: [email protected]
> Subject: Re: Unicode Characters::Support Arabic in SMS
>
>
>
> Here is my servlet code that receives the request and responds back to
> get-url.
>
>             resp.setContentType("text/html; charset=UTF-8");
>             resp.setCharacterEncoding("UTF-8");
>             String responseString =
someClass.getArabicText(sender,message);
>             resp.getWriter().println(responseString);
>
> I hope this setting encoding should be enough in Java servlet to receive
an
> Arabic based response since this is the only configuration I have done in
> sendsms code snippet.
>
> Regards,
>
>
>
> On Mon, May 16, 2011 at 7:32 AM, Hammad <[email protected]> wrote:
>
> Hi All,
>
> I am successfully able to send SMS in Arabic/Urdu text through send-sms by
> working out the encoding scheme to be UTF-8 in my servlet.
>
> Problem is, when in sms-service; I use get-url and even if I set encodings
I
> get ???? ??? as the language support is withdrawn by Kannel on the message
> in its way-back to sender. When before sending back the response from
> servlet in doGet against request, I use URLEncoder.encode(message,
"UTF-8")
> - kannel sends the message with all encoding characters even for English
> i.e. Spaces converted to + etc etc.
>
> How do I respond back to sender in same get-url with arabic?
>
> get-url = "
> http://ccc.hhh.jjj.kkk/service?msisdn=%p
>
<http://ccc.hhh.jjj.kkk/service?msisdn=%25p&desstination=%25P&message=%25a&s
> mscid=%25i> &desstination=%P&message=%a&smscid=%i
> "
>
> please help...
>
> regards,
>
>
>
>
>
>
> --
> Disclaimer:  This transmission (including any attachments) may contain
> confidential information, privileged material or constitute non-public
> information. Any use of this information by anyone other than the intended
> recipient is prohibited. If you have received this transmission in error,
> please immediately reply to the sender and delete this information from
your
> system.
>
>


-- 
Disclaimer:  This transmission (including any attachments) may contain
confidential information, privileged material or constitute non-public
information. Any use of this information by anyone other than the intended
recipient is prohibited. If you have received this transmission in error,
please immediately reply to the sender and delete this information from your
system.


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to