[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with 8bit characters

From: alonso acuña
Subject: problem with 8bit characters
Date: Sat, 14 Apr 2012 00:09:40 -0600

Hello. I am using smsd from gnokii 0.6.31
I need to send characters like ñ and ó
When sending from gnokii this works only if I sent the -8 option on the command line.
When using smsd this does not work. I have tried many things changing the LANG to utf8 from my default iso8859-1. Also changed the mysql to utf8 from the detault latin1. With no luck.
What I get is garbled characters.
Finally my solution was to edit smsd/lowlevel.c and just before the call to gn_sms_send I added a line:

dt->sms->dcs.u.general.alphabet = GN_SMS_DCS_8bit;
d->status = gn_sms_send (dt, sm); 

So now it works. I don't know if this is a bug or somehow my error. I call smsd like this:

smsd -t 1 -u smsgw -p smsgw222 -d smsgw -c localhost -m mysql -b SM -f /var/log/reca/smsd1.log -e latin1 -0 

I have LANG=en_US.ISO-8859-1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]