Re: strange character encode errors with SMPP!! help

"David Tully" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <008001c304f5$f0329010$0401a8c0@DELLLAPTOP>
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.

Regards,

David.


----- Original Message -----
From: "Patrick Mignott" <[email protected]>
To: "Stipe Tolj" <[email protected]>
Cc: <[email protected]>
Sent: Thursday, April 17, 2003 5:40 PM
Subject: strange character encode errors with SMPP!! help


> Stipe they are using a CMG smsc SMPP 3.3
> charset=ISO-8859-1
>
> what is strange is that the Characters display fine in the accesslog file
by
> come out strange in the kannel log file see below
>
> normal access file send process
>
>  [to:18763753224] [flags:0:1:0:0:0]      [msg:41: test char =  @ at $
dollar
> ' Apostrophe ] [udh:0:]
> ###################
>
> Now notice how the  @ and $ sign are sent back as . (dots)
>
>
> 2003-04-15 15:43:30 [10] DEBUG:   short_message:
> 2003-04-15 15:43:30 [10] DEBUG:    Octet string at 0x80f3ad0:
> 2003-04-15 15:43:30 [10] DEBUG:      len:  41
> 2003-04-15 15:43:30 [10] DEBUG:      size: 42
> 2003-04-15 15:43:30 [10] DEBUG:      immutable: 0
> 2003-04-15 15:43:30 [10] DEBUG:      data: 20 74 65 73 74 20 63 68    test
> ch
> 2003-04-15 15:43:30 [10] DEBUG:      data: 61 72 20 3d 20 20 00 20   ar =
.
> 2003-04-15 15:43:30 [10] DEBUG:      data: 61 74 20 02 20 64 6f 6c   at .
> dol
> 2003-04-15 15:43:30 [10] DEBUG:      data: 6c 61 72 20 27 20 41 70   lar '
> Ap
> 2003-04-15 15:43:30 [10] DEBUG:      data: 6f 73 74 72 6f 70 68 65
> ostrophe
> 2003-04-15 15:43:30 [10] DEBUG:      data: 20
> 2003-04-15 15:43:30 [10] DEBUG:    Octet string dump ends.
>
>
> ##############
> also the apostrophe sign works file as a text response inside the symbol
> kannel for but is returned as  ü / '     when using a CGI why?
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.