HI
Currently i am using web api for my project. The issue i am facing is sending sms with unicode character inside (Chinese characters).
In the Cloud API Guide v4.2 - MT API - "Type" parameter wrote :
"Message Content Type:
“A” – ASCII
“H” – Hexadecimal
“U” – Unicode
It is possible to mix Type A characters and Type U characters within a single message; in this case, you must set Type=U, and treat the message as a Type U message.
Note:
For message with Type U, send the message body as double-byte UTF-16"
and "Message" parameter wrote :
"Message Content
If Type = “A”, not more than 160 characters
If Type = “H”, not more than (280 – Length of UserHeader field) HEX characters
If Type = “U”, not more than 70 characters".
This is my question: example, i have a message with content like below:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit 安安安"
1. is it correct if i must convert ALL the content -> UTF-16 then send thought the api ?
2. Type = “U”, not more than 70 characters : this mean the sms in type "U" can send 70 unicode character? example the content have 70 times of "安" can send ? If this thing can, pls advise. Currently i must convert the mix content like above to UTF-16 like this:
"004C 006F 0072 0065 006D 0020 0069 0070 ..."
then send.