1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-12 19:13:57 +02:00

fixed error when encoding the json response

This commit is contained in:
Marco Dickert
2017-07-31 16:29:28 +02:00
parent 8674dd3d12
commit 053c9074f8
3 changed files with 6 additions and 3 deletions

View File

@@ -2957,6 +2957,7 @@ function IFM( params ) {
array( $this, 'convertToUTF8' )
);
else
if( function_exists( "mb_check_encoding" ) && ! mb_check_encoding( $item, "UTF-8" ) )
$item = utf8_encode( $item );
}

View File

@@ -2957,6 +2957,7 @@ function IFM( params ) {
array( $this, 'convertToUTF8' )
);
else
if( function_exists( "mb_check_encoding" ) && ! mb_check_encoding( $item, "UTF-8" ) )
$item = utf8_encode( $item );
}

View File

@@ -886,6 +886,7 @@ f00bar;
array( $this, 'convertToUTF8' )
);
else
if( function_exists( "mb_check_encoding" ) && ! mb_check_encoding( $item, "UTF-8" ) )
$item = utf8_encode( $item );
}