SMS Server Tools 3
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. The forum is currently read-only, but will open soon. Thu Nov 21, 2024 16:07
SMSTools3 Community » Sample scripts / setups Bottom

decode problem (hungarian chars)

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Jan 2012
Location: Hungary/Budapest, Hungary
hi,

This is my conf:


evices = GSM1
logfile = /var/log/smsd.log
loglevel = 8
store_sent_pdu = 3
eventhandler = /usr/local/etc/sms2sql.sh
incoming_utf8 = yes

[GSM1]
device = /dev/cuaU0.0
incoming = yes
baudrate = 115200
memory_start = 0
cs_convert = yes
smsc = #####

The above solution works, BUT two characters are problems: őŐ űŰ
these chars store in the file (/var/spool/sms/incoming/*) like this:
ÁrvíztqrQ tükörfúrógép
q = ű
Q = ő

What becomes of these characters with other characters?

regards, Zsolt

Member
Registered:
Aug 2014
Location: Hungary
Hello All!

I ran into the same problem, and I write down the solution.
The problem is that You I the message without any "Alphabet: XXX" setting the sms outgoing file.
I read it somewhere in the documentation that if I specify Alphabet setting the the text part should be in UNICODEBIG encodig.

I'm sending text messages with sendsms command, and I modified it like this:
- Commented the part which finds the alphabet, and set fix UCS alphabet:
#ALPHABET=""
#if which iconv > /dev/null 2>&1; then
# if ! $ECHO -n "$TEXT" | iconv -t ISO-8859-15 >/dev/null 2>&1; then
# ALPHABET="Alphabet: UCS"
#
#
# fi
#fi
ALPHABET="Alphabet: UCS"

And modified this line:
$ECHO -n "$TEXT" | iconv -t UNICODEBIG >> $TMPFILE

to this:
$ECHO -n "$TEXT" | iconv -f UTF-8 -t UNICODEBIG >> $TMPFILE

and just have to remove a newline character from the end of the binary UNICODEBIG part of the file. Still working in that one. :)

All the best,

Tamas

Login and Post Reply

Page:  1

SMSTools3 Community » Sample scripts / setups Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.