Skip to content
Snippets Groups Projects
Commit b9eb9be5 authored by lobo's avatar lobo
Browse files

CRM-14033 - Clickatell expects text in ISO-8859-1 if not in Unicode mode

parent 53f539e3
No related branches found
No related tags found
No related merge requests found
......@@ -235,7 +235,7 @@ class org_civicrm_sms_clickatell extends CRM_SMS_Provider {
}
//TODO:
$postDataArray['to'] = $header['To'];
$postDataArray['text'] = substr($message, 0, 460); // max of 460 characters, is probably not multi-lingual
$postDataArray['text'] = utf8_decode(substr($message, 0, 460)); // max of 460 characters, is probably not multi-lingual
if (array_key_exists('mo', $this->_providerInfo['api_params'])) {
$postDataArray['mo'] = $this->_providerInfo['api_params']['mo'];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment