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 9c1c123 commit 9d94fa5Copy full SHA for 9d94fa5
src/HTML5/Parser/UTF8Utils.php
@@ -50,6 +50,8 @@ public static function countChars($string)
50
// Get the length for the string we need.
51
if (function_exists('mb_strlen')) {
52
return mb_strlen($string, 'utf-8');
53
+ } elseif (function_exists('iconv_strlen')) {
54
+ return iconv_strlen($string, 'utf-8');
55
} elseif (function_exists('utf8_decode')) {
56
// MPB: Will this work? Won't certain decodes lead to two chars
57
// extrapolated out of 2-byte chars?
0 commit comments