SMS Server Tools 3
This site is hosted by Kekekasvi.com
 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. Please login or register. Thu Apr 25, 2024 10:22
SMSTools3 Community » Help and support Bottom

[solved] Problems receiving scandinavian characters (no problems sending them)

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Feb 2013
Location: Denmark
Operating system name and version: Debian 6.0.6
Version of smsd: 3.1.15
Smsd installed from: sources
Name and model of a modem : HUAWEI E1552
Interface: USB

I am having trouble recieving the special scandinavian caracters æøåÆØÅ correctly.
Whenever an sms is received, these caracters are replaced by "diamonds-caracters".
There are, however no trouble sending messages containing these letters.

If I, for instance sends the message:


i will receive an sms looking like this:



My config file is as below:

# Global configuration
devices = modem1
loglevel = 5
logfile = /var/log/sms/smstools.log
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
delaytime = 6
errorsleeptime = 12
blocktime = 180
autosplit = 3
receive_before_send = yes
hangup_incoming_call = yes

# Modem configuration # HUAWEI E1552B
[modem1]
init = AT+CPMS="ME","ME","ME"
device = /dev/ttyUSB0
incoming = yes
pin = 1234
baudrate = 19200
memory_start = 0
 
'smsdconf' Syntax Highlight powered by GeSHi


I have tried the following settings both in unison and independetly:


The first does not help, and the second appearently blocks the messages so they do not show up in the incomming folder.

It is worth noticing that I am running on a system that does not have Danish localization. This does, however usually not present problems as danish special caracters have been around since extended ASCII.

Any help would be greatly appriciated, thanks.

Member
Registered:
Feb 2013
Location: Denmark
Topic owner
If any other people are experiencing similar problems, here is a workaround I am currently using:

It seemed that the danish characters was always decoded to the same (wrong) characters.
This was verified looking at several incoming messages with a hex editor.

As the characters are consistently decoded to the same char, the octal value of these characters can be used along with a streameditor.
The following command produces a correctly formatted file.

sed -e "s/\o346/æ/g" -e "s/\o370/ø/g" -e "s/\o345/å/g" -e "s/\o306/Æ/g" -e "s/\o330/Ø/g" -e "s/\o305/Å/g" errorFile.txt >decodedCorrectly.txt

I have set up a listener on the .../spool/incoming/ directory and move the files through a script to /spool/incommingOk/ from where i can pick them up.

....
While this work. it is not a solution though - just thought someone might benefit from this.
This workaround works on Debian 6.0.6

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Those characters are in ISO alphabet, and probably your locale is UTF-8. Try a global setting incoming_utf8 = yes.

Member
Registered:
Feb 2013
Location: Denmark
Topic owner
That fixed it. Thanks a lot - and sorry for (appearently) not having read the configuration section properly before asking.

Member
Registered:
Feb 2013
Location: Denmark
Topic owner
...not quite sure how to mark question as solved... cannot edit title, no "solved button"

Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.