We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97f171b commit 9c1c123Copy full SHA for 9c1c123
src/HTML5/Parser/UTF8Utils.php
@@ -48,9 +48,7 @@ class UTF8Utils
48
public static function countChars($string)
49
{
50
// Get the length for the string we need.
51
- if (function_exists('iconv_strlen')) {
52
- return iconv_strlen($string, 'utf-8');
53
- } elseif (function_exists('mb_strlen')) {
+ if (function_exists('mb_strlen')) {
54
return mb_strlen($string, 'utf-8');
55
} elseif (function_exists('utf8_decode')) {
56
// MPB: Will this work? Won't certain decodes lead to two chars
0 commit comments