From: Frederic Guzman Date: Thu, 6 Oct 2016 14:16:14 +0000 (-0400) Subject: CRM-19465 - Capitalization displaying contries when in mailing mode X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e8bbf7567fbcd8d139df3afb8cdda2b862acaf84;p=civicrm-core.git CRM-19465 - Capitalization displaying contries when in mailing mode Avoiding possible issues with special characters. --- diff --git a/CRM/Utils/Address.php b/CRM/Utils/Address.php index 71189daf3d..c0cb56af5a 100644 --- a/CRM/Utils/Address.php +++ b/CRM/Utils/Address.php @@ -105,7 +105,8 @@ class CRM_Utils_Address { $fields['country'] = NULL; } else { - $fields['country'] = strtoupper($fields['country']); + //Capitalization display on uppercase to contries with special characters + $fields['country'] = mb_convert_case($fields['country'], MB_CASE_TITLE,"UTF8"); } } else {