gnokii-users
[Top][All Lists]
Advanced

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

about unicode-- a minor problem


From: baohaojun
Subject: about unicode-- a minor problem
Date: Fri, 13 Feb 2004 15:11:22 +0800
User-agent: Mutt/1.4.1i

hi, gnokii-users

when i was using gnokii to send Chinese sms, there was problem
encoding some characters like

  "小伙子\xd0\xa1\xbb\xef\xd3\xd7";

and I found that it is necessary to do this before the encoding to
clear some internal state:

in file common/gsm-encoding.c:

423d422
<       mbtowc(NULL, NULL, 1);

after this, the encoding is correct now :)

sorry, i'm a newbie, so this is not written very formally. and i also
wonder, if it is necessary to do this at other places where mbtowc is
used.

-- 
best, 
Bao Haojun





reply via email to

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