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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
1
ifm.php
1
ifm.php
@@ -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 );
|
||||
}
|
||||
|
||||
|
@@ -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 );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user