From b9eb9be515d70c22fa603e7c2f833297a513570b Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Thu, 2 Jan 2014 12:56:37 +0530 Subject: [PATCH] CRM-14033 - Clickatell expects text in ISO-8859-1 if not in Unicode mode http://issues.civicrm.org/jira/browse/CRM-14033 --- .../org.civicrm.sms.clickatell/org_civicrm_sms_clickatell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/extensions/org.civicrm.sms.clickatell/org_civicrm_sms_clickatell.php b/tools/extensions/org.civicrm.sms.clickatell/org_civicrm_sms_clickatell.php index 195c0d7c9b..8c0a8dc3c5 100644 --- a/tools/extensions/org.civicrm.sms.clickatell/org_civicrm_sms_clickatell.php +++ b/tools/extensions/org.civicrm.sms.clickatell/org_civicrm_sms_clickatell.php @@ -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']; } -- 2.25.1