Re: strange character encode errors with SMPP!! help
Stipe Tolj <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Wapme Systems AG |
| Message-ID | <[email protected]> |
David Tully schrieb: > > I'm using SMPP and found similar problems, but put it down to the character > set that the operator was using - which they told me was HP Roman-1.. > I found (by sending every hex value form 0x00 to 0xFF) that I needed to > convert certain characters to a different value before sending in order to > get them to display. Namely: > > $text =~ s/%40/%7c/g; # @ symbol > $text =~ s/%24/%a4/g; # $ symbol > $text =~ s/%5F/%a7/g; # _ symbol > > I do this on a text message after URL encoding it.. > > I also found the following: > 0x80 = euro symbol > 0xE4 = £ > > Apologies if this isn't relevant. for the SMPP module you can use 'alt-charset' to define to which character set Kannel should encode before passing to the smsc. Ie. we have for E-Plus (in Germany) group = smsc ... alt-charset = "HP-ROMAN8" to transcode automacially (using iconv() routines) to the desired set. Stipe [email protected] ------------------------------------------------------------------- Wapme Systems AG Vogelsanger Weg 80 40470 Düsseldorf Tel: +49-211-74845-0 Fax: +49-211-74845-299 E-Mail: [email protected] Internet: http://www.wapme-systems.de ------------------------------------------------------------------- wapme.net - wherever you are