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 17:05
SMSTools3 Community » Help and support Bottom

Can't send any special character

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Jan 2015
Location: Blanca, Spain
Operating system name and version: Ubuntu Server 14.04.1 LTS (32 bits)
Version of smsd: 3.1.15
Smsd installed from: package repository
Name and model of a modem / phone: WAVECOM FASTRACK M1306B
Interface: serial

Hello.

I can't send any accentuated character. I've tried to use "Alphabet: UTF-8" in the SMS, cs_convert = yes in modem configuration and I've also used the "checkhandler". I read here that in 3.1.5 version the checkhandler and eventhandler are unnecessary, but I can't send special characters in any case.

Thanks in advance.

Member
Registered:
Mar 2013
Location: France
Hello,

can you post your smsd.conf please ?

What's your charset env ?
Try locale into a terminal.

How did you wrote your sms (shell script, vi, php interface ...)?

Member
Registered:
Jan 2015
Location: Blanca, Spain
Topic owner
Hello!

- SMS are wrote with php interface. We wirte SMS files directly (with emacs).

- Here is charset env:

root@server:~# locale
LANG=es_ES.UTF-8
LANGUAGE=
LC_CTYPE=es_ES.UTF-8
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=



- And here is the smsd.conf file:

# AUTOMATICALLY CREATED CONFIGURATION FILE -- DO NOT EDIT BY HAND!
#
# Description: Main configuration file for the smsd
# Last changed: jue abr 16 13:32:59 CEST 2009
# Please note that this is _not_ a dpkg-conffile. It has been created because
# you have choosen to manage smsd configuration with debconf. This file is not meant
# to be and should not be editted directly.
# Instead
# Run: dpkg-reconfigure <-plow> smstools
#
# If you want to manage your configuration file by hand at a later time
# you may run the above command, too and say that you don't want to manage
# smsd configuration with debconf.

# Global configuration
devices = GSM1, GSM2, GSM3, GSM4
logfile = /var/log/smstools/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
loglevel = 7
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
#checkhandler = /usr/local/bin/smsd_checkhandler.sh
# You can specify here an external program that is started whenever an alarm occurs.
# alarmhandler = /path/to/an/alarmhandler/script
# Specifies what levels start an alarmhandler. You can use value between 2 and 5.
# alarmlevel = 4
# eventhandler = @EVENTHANDLER@
#blacklist = /etc/smstools/blacklist
#whitelist = /etc/smstools/whitelist
autosplit = 3
delaytime = 1
errorsleeptime = 1
blocktime = 1


# Modem configuration
[GSM1]
#init =
device = /dev/ttyS0
#incoming = yes
# pin =
baudrate = 9600
cs_convert = yes
#report_device_details = yes

[GSM2]
#init =
device = /dev/ttyS1
#incoming = yes
# pin =
baudrate = 9600
cs_convert = yes
#report_device_details = yes

[GSM3]
#init =
device = /dev/ttyS4
#incoming = yes
# pin =
baudrate = 115200
cs_convert = yes
#report_device_details = yes

[GSM4]
#init =
device = /dev/ttyS5
#incoming = yes
# pin =
baudrate = 115200
cs_convert = yes
#report_device_details = yes


Thanks.

Member
Registered:
Mar 2013
Location: France
Hi,

be sure your php files are in utf-8 too :



look for charset variable.

Use Alphabet: ISO into the sms file.


can you post the function who's writing the sms file ?

_______________
Regards,
Freeshman

Member
Registered:
Jan 2015
Location: Blanca, Spain
Topic owner
I've write this file directly in the sms server with emacs:


To: 34xxxxxxxxx
Alphabet: ISO

prueba7.ééíóú.


# file -i sms.txt
sms.txt: text/plain; charset=utf-8

Member
Registered:
Jan 2015
Location: Blanca, Spain
Topic owner
In the phone we receive this:

prueba7.ééiou.

Only "e" is accentuated,"i", "o" and "u" not (I had a typo and I wrote ééíóú instead of áéíóú).

Member
Registered:
Jan 2015
Location: Blanca, Spain
Topic owner
I can send only é and ñ/Ñ, but I can't include á, í, ó, ú.

Thanks.

Member
Registered:
Mar 2013
Location: France
Try with :


_______________
Regards,
Freeshman

Member
Registered:
Jan 2015
Location: Blanca, Spain
Topic owner
I have received only Chinese (or Japanese -I don't know those languages-) characters.

Member
Registered:
Mar 2013
Location: France
Try


into GSM configuration and put


into sms file

If it doesn't work, try to send your message in binary mode (?)...

Good Luck

_______________
Regards,
Freeshman

Member
Registered:
Jan 2015
Location: Blanca, Spain
Topic owner
It doesn't work :-(.

How can I send a sms in binary mode? I was reading info about pdu mode but I don't understand well how can I do it. Can you give me an expample?

Thank you very much!

Member
Registered:
Mar 2013
Location: France
Look after this post :
http://smstools3.kekekasvi.com/topic.php?id=509

When testing with


Did you convert your sms file in unicode ?

Check it :
Quote
file -i original_sms_file

try


For sending binary message, sorry i never tested...

_______________
Regards,
Freeshman

Member
Registered:
Jan 2015
Location: Blanca, Spain
Topic owner
It works!!!

Thank you very much!!!!

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.