Support Center

Troubleshooting the HTTP API - Character encoding

Last Updated: Jul 02, 2013 12:26PM EST
When building applications using the HTTP API, it is important to account for any symbols that might interfere with the API string in some way. As a result, it is best practice to triple encode all API strings before calling the API.

Symbols such as plus symbol + and ampersands &, and any Unicode characters, must be triple URL encoded and submitted in their encoded form. This ensures such characters a properly escaped. Many programming languages have functions available for URL encoding. For example:

ASP.NET (C#)
HttpUtility.UrlEncode("string");

Java
URLEncoder.encode("string");

PHP
rawurlencode('string');

​Running this function three times on any strings you submit will help prevent errors that non-escaped symbols might produce, and ensure that Unicode encoded messages are received correctly.

Contact Us

desk@smsglobal.local
http://assets0.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete