CRM-19465 - Capitalization displaying contries when in mailing mode
authorFrederic Guzman <frederickgzmn@gmail.com>
Thu, 6 Oct 2016 14:16:14 +0000 (10:16 -0400)
committerGitHub <noreply@github.com>
Thu, 6 Oct 2016 14:16:14 +0000 (10:16 -0400)
Avoiding possible issues with special characters.

CRM/Utils/Address.php

index 71189daf3df64ba3184f75e5dc563f8e029a7207..c0cb56af5aac8eadf327d138b416a2424d3fbd59 100644 (file)
@@ -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 {