the ususal character set encoding used by kannel to post to http is
"ISO-8859-1"
when you get extra characters Kannel use "UTF-16BE"
this is why you should convert from the kannel encoing to your native
encoding,
THEN encode to UTF
On Fri, Sep 25, 2009 at 12:27 PM, patrick meye <[email protected]>wrote:

>  Thanks for reply, perhaps i don't understand what you say but it's my
> encoding that decode to UTF-8 for sms apear to TV monitor.
>
> this is the schema:
>
>                     sms                                    sms
>   *Kannel------------------>Application------------->TV
>     (???)                                      (UTF-8)
>     (UTF-8)
> *
> My problem is kannel coding and format.
>
> Best regard!
>
>
>
> > Date: Fri, 25 Sep 2009 11:32:09 +0300
> > From: [email protected]
> > CC: [email protected]
> > Subject: Re: coding
> >
> > Decode at the HTTP interface from UTF-8 to your encoding
> >
> > example php:
> >
> > $sms1251=preg_match("/UTF/i",$GLOBALS["_REQUEST"]["charset"]) ?
> pg_escape_string(iconv($GLOBALS["_REQUEST"]["charset"],
> > "Windows-1251",$GLOBALS["_REQUEST"]["message"])) :
> pg_escape_string($GLOBALS["_REQUEST"]["message"]);
> >
> > patrick meye wrote:
> > > Hi all,
> > > I successfully setting up kannel like sms gateway and it run
> > > perfectly.So i created a service that send sms to TV via another
> > > application that format is UTF-8.Service run ok but i have an encoding
> > > and format problem,cause some special charactèr are mal formated (i.e
> > > ex:é,à,è,ç,...etc).Is some one can help me,what can i do what setting
> add???
> > > Adding is my kannel.conf please help me. Sorry for my english i'm just
> > > learning english.
> > >
> > > Best regard!
> > >
> > >
> ------------------------------------------------------------------------
> > > Découvrez toutes les possibilités de communication avec vos proches
> > > <http://www.microsoft.com/windows/windowslive/default.aspx>
> >
>
> ------------------------------
> Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? 
> Lancez-vous
> ! <http://www.microsoft.com/windows/windowslive/default.aspx>
>



-- 
seik

Reply via email to