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 c8b6996 commit cf246cbCopy full SHA for cf246cb
classes/Visualizer/Source.php
@@ -222,7 +222,7 @@ protected function _normalizeData( $data ) {
222
}
223
break;
224
case 'string':
225
- if ( function_exists( 'mb_detect_encoding' ) && mb_detect_encoding( $data[ $i ] ) !== 'ASCII' ) {
+ if ( ! function_exists( 'mb_detect_encoding' ) || mb_detect_encoding( $data[ $i ] ) !== 'ASCII' ) {
226
$data[ $i ] = \ForceUTF8\Encoding::toUTF8( $data[ $i ] );
227
228
0 commit comments