Skip to content

Commit cf246cb

Browse files
convert to UTF8 if mb_string is not installed
1 parent c8b6996 commit cf246cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Visualizer/Source.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ protected function _normalizeData( $data ) {
222222
}
223223
break;
224224
case 'string':
225-
if ( function_exists( 'mb_detect_encoding' ) && mb_detect_encoding( $data[ $i ] ) !== 'ASCII' ) {
225+
if ( ! function_exists( 'mb_detect_encoding' ) || mb_detect_encoding( $data[ $i ] ) !== 'ASCII' ) {
226226
$data[ $i ] = \ForceUTF8\Encoding::toUTF8( $data[ $i ] );
227227
}
228228
break;

0 commit comments

Comments
 (0)