mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-14 03:53:59 +02:00
fixed error when encoding the json response
This commit is contained in:
@@ -2957,6 +2957,7 @@ function IFM( params ) {
|
|||||||
array( $this, 'convertToUTF8' )
|
array( $this, 'convertToUTF8' )
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
|
if( function_exists( "mb_check_encoding" ) && ! mb_check_encoding( $item, "UTF-8" ) )
|
||||||
$item = utf8_encode( $item );
|
$item = utf8_encode( $item );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
ifm.php
1
ifm.php
@@ -2957,6 +2957,7 @@ function IFM( params ) {
|
|||||||
array( $this, 'convertToUTF8' )
|
array( $this, 'convertToUTF8' )
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
|
if( function_exists( "mb_check_encoding" ) && ! mb_check_encoding( $item, "UTF-8" ) )
|
||||||
$item = utf8_encode( $item );
|
$item = utf8_encode( $item );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -886,6 +886,7 @@ f00bar;
|
|||||||
array( $this, 'convertToUTF8' )
|
array( $this, 'convertToUTF8' )
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
|
if( function_exists( "mb_check_encoding" ) && ! mb_check_encoding( $item, "UTF-8" ) )
|
||||||
$item = utf8_encode( $item );
|
$item = utf8_encode( $item );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user