渔阳鼓2009-01-03 08:06:16
I was using Huawei Broadband modem to send SMS, but failed each time when any extension character (like ~^{}[]\|) is included in the message. I know that an extension character is actually composed of two characters started with the escape character "0x1b", but somehow the message could still not be sent out and the response messages from the modem is somewhat different from a normal response for success.

For example, I attempted to send out a SMS text "123456^{" encoded in C# as the follows:

message = "\u0031\u0032\u0033\u0034\u0035\u0036\u001b\u0014\u001b\u0028";

However, when the message was sent out, I got the following response:

OK


but the specified handphone can not receive such a message. Actually the right success response should be

+CMGS: 12

So who can tell me what the problem is? How can I send out those extension characters?

Thanks!