From 8c1715d5a7ab25fb37210962c77424389501438e Mon Sep 17 00:00:00 2001 From: Antonio Ramirez Date: Sat, 28 Dec 2013 09:28:47 +0100 Subject: [PATCH] remove UTF-8 string conversion --- framework/yii/helpers/BaseInflector.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/framework/yii/helpers/BaseInflector.php b/framework/yii/helpers/BaseInflector.php index c1c3859..cb59986 100644 --- a/framework/yii/helpers/BaseInflector.php +++ b/framework/yii/helpers/BaseInflector.php @@ -449,8 +449,6 @@ class BaseInflector */ public static function slug($string, $replacement = '-', $lowercase = true) { - // ensure UTF-8 and remove invalid UTF-8 chars. - $string = mb_convert_encoding((string) $string, 'UTF-8', mb_list_encodings()); if (extension_loaded('intl') === true) { $options = 'Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC; [:Punctuation:] Remove;'; $string = transliterator_transliterate($options, $string);