作者 邓超

优化

@@ -21,6 +21,10 @@ class Fun { @@ -21,6 +21,10 @@ class Fun {
21 */ 21 */
22 public static function mb_convert_encoding($str, $to, $from = null){ 22 public static function mb_convert_encoding($str, $to, $from = null){
23 23
  24 + if($from == 'unicode'){
  25 + return $str;
  26 + }
  27 +
24 $from = self::getEncodingAliases($from); 28 $from = self::getEncodingAliases($from);
25 29
26 30