Skip to content

Commit 324d74d

Browse files
committed
added iconv #180
1 parent 8e436fc commit 324d74d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Utils.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ public static function toUtf8($content, $charset)
210210
return mb_convert_encoding($content, 'UTF-8', $charset);
211211
}
212212

213+
if (function_exists('iconv')) {
214+
return iconv($charset, 'UTF-8', $content);
215+
}
216+
213217
return $content;
214218
}
215219
}

0 commit comments

Comments
 (0)