gnokii-users
[Top][All Lists]
Advanced

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

RE: character conversion problem - using gn_send_sms


From: Faludi Gabor
Subject: RE: character conversion problem - using gn_send_sms
Date: Thu, 12 Apr 2007 14:44:28 +0200

Hi,

This actually did the magic, but I am still to do reading of messages :).

Can you also have a look at this code ? I was copied from gnokii direct but
don't seem to work . Again gnokii itseld works just fine . 
Problem is w/ getsms function that don't seem to give back anything .

Tx,
gabor

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of Daniele
Forsi
Sent: Tuesday, April 10, 2007 10:55 PM
To: Discussion forum for gnokii users.
Subject: Re: character conversion problem - using gn_send_sms

Gabor Faludi wrote:

> i have tried to built a a simple sms sending application to see how 
> the API works ,and i am struggling to be able to send hungarian 
> (accented characters). Instead of these chars i receive ??-s the rest is
fine.

if you use gnokii --savesms then can you read back the text correctly with
--getsms and on the phone?

If gnokii works for you, your problem might be here:

70:   if (!gn_char_def_alphabet(sms.user_data[0].u.text))
71:   sms.dcs.u.general.alphabet = GN_SMS_DCS_UCS2;

because sms.user_data[0].u.text is zeroed until:

77:   strcpy((char*)sms.user_data[0].u.text, text);

after rearranging the code, it works for me

--
Daniele


_______________________________________________
gnokii-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/gnokii-users

Attachment: gnread.c
Description: Text document


reply via email to

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