This is an artifact of the "GREAT MIGRATION FROM 0 MEANING UNDEFINED"
awhile back.  Kannel up to v1.3.2 did not have a clear definintion
of what to put into parameters (like Coding, MWI, RPI, MClass, etc).
Some used zero to represent undefined values but zero could be
a value for some parameters (like MWI, RPI).

Also, there wasn't a clear standard on whether to start the parameters
with a count from 0..1..2 or 1..2..3.

As a result, the value of -1 is now declared as meaning "UNDEFINED"
and all parameters start from zero.

My example was for v1.3.1 (sorry for not including that in my
reply...was typing to fast...).

If you are using versions prior to v1.3.2, then the coding for
UCS-2 (double-byte) characters is "3"; 8-bit binary (like STK
provisioning) is is "2"; 7-bit GSM7 character set is "1" or "0".

If you are using versions after v1.3.1 (v1.3.2, v1.4.0 stable, and
CVS head) then UCS-2 is "2"; 8-bit binary is "1"; GSM7 character
set is "0"; and undefined coding is "-1".

Hope that clears things for everyone.

See ya...

d.c.



Thank you, Davy Chan. I submited something like the following. http://localhost:12345/cgi-bin/sendsms?username=u&password=p&to=91239123&text=%a4%a4%a4%e5&coding=2 But I still experience the unreadable Chinese words. Is there something I missed?

Thank you very much.
Simon





Reply via email to