On Thu, Jul 22, 2010 at 2:16 PM, gasmen <[email protected]> wrote:
>
> HI all
> i am using kannel 1.4.3 and i see that kannel dont support some characters
> like the frensh .for this i am looking ho to add servlet to implement utf-8
> encoding ;that means i am using myeclipse to devoleop it and i ask exactly
> how is the form of the request and the respons i will use for this
> servlet???

When you send the http request to kannel you have to URL encode all
the text fields.
This means that you will set the message text as utf-8 text, and then
do URL encoding before
creating the sendsms url for kannel.

for example:

String messageText = URLEncoder.encode("UTF-8 encoded text", "UTF-8")
String sendsmsURL =
"http://localhost:13131/cgi-bin/sendsms?username=...&password=...&text=";
+ messageText;


BR, Jovan

Reply via email to