Skip to content

Commit b219b13

Browse files
committed
try to fix enconding issues
1 parent dc8125e commit b219b13

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Utils.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,6 @@ public static function parse($html)
296296
*/
297297
private static function normalize($string)
298298
{
299-
if (stripos($string, '<meta charset="utf') === false) {
300-
return $string;
301-
}
302-
303299
$detected = mb_detect_encoding($string, implode(',', array_keys(self::ENCODINGS)), true);
304300

305301
if ($detected && isset(self::ENCODINGS[$detected])) {

0 commit comments

Comments
 (0)