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);