Unicode SMS

Send Unicode SMS messages over textual or binary API methods.

Unicode (UTF-16) messages can be sent either with textual or binary Send SMS methods.

If you choose to send Unicode messages using textual Send SMS methods, unconverted Unicode text should be inserted in the text parameter:

POST /sms/1/text/single HTTP/1.1
Host: api.infobip.com
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Content-Type: application/json

{  
   "from":"InfoSMS",
   "to":"41793026727",
   "text":"Hello world, Καλημέρα κόσμε, コンニチハ"
}	
  

The Unicode message will be automatically sent to the mobile phone. If you wish to strip Unicode characters from your message check out the NON_UNICODE SMS transliteration.

On the other hand, if you want to send Unicode messages using binary Send SMS methods, the message text should be converted into hexadecimal representation using UTF-16 character encoding. The hexadecimal content should then be inserted in the hex parameter. Additionally, you should set dataCoding parameter to 8, which corresponds to UTF-16 encoding:

POST /sms/1/binary/single HTTP/1.1
Host: api.infobip.com
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Content-Type: application/json

{  
   "from":"InfoSMS",
   "to":"41793026727",
   "binary":{  
      "hex":"0048 0065 006c 006c 006f 0020 0077 006f 0072 006c 0064 002c 0020 039a 03b1 03bb 03b7 03bc 03ad 03c1 03b1 0020 03ba 03cc 03c3 03bc 03b5 002c 0020 30b3 30f3 30cb 30c1 30cf",
      "dataCoding":8,
      "esmClass":0
   }
}	
  

When used in combination with Flash SMS message type, set dataCoding in the same way:

POST /sms/1/binary/advanced HTTP/1.1
Host: api.infobip.com
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Content-Type: application/json

{
   "messages": [{
       "from":"InfoSMS",
       "destinations":[{
          "to":"41793026727"
       }],
       "binary":{
          "hex":"0048 0065 006c 006c 006f 0020 0077 006f 0072 006c 0064 002c 0020 039a 03b1 03bb 03b7 03bc 03ad 03c1 03b1 0020 03ba 03cc 03c3 03bc 03b5 002c 0020 30b3 30f3 30cb 30c1 30cf",
          "dataCoding":8,
          "esmClass":0
       },
       "flash":true
   }]
}	
  

Important:

When sending messages with one or more non-GSM characters (for example Unicode), the text of the message is limited to 70 characters. You can find which characters are included in the GSM set here.