diff --git a/module/VuFind/src/VuFind/SMS/Clickatell.php b/module/VuFind/src/VuFind/SMS/Clickatell.php index 26a95ee2453f581e6052d14d3ea1fa078b4f157c..1c393421d000a38f5eeb45579d4cc4d84853f1fd 100644 --- a/module/VuFind/src/VuFind/SMS/Clickatell.php +++ b/module/VuFind/src/VuFind/SMS/Clickatell.php @@ -67,6 +67,10 @@ class Clickatell extends AbstractBase if (!function_exists('iconv')) { throw new MailException('Clickatell requires iconv PHP extension.'); } + // Normalize UTF-8 if intl extension is installed: + if (class_exists('Normalizer')) { + $message = \Normalizer::normalize($message); + } $message = iconv('UTF-8', 'ISO-8859-1//TRANSLIT', $message); // We need to trim to 160 bytes (note that we need to use substr and not