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&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.