1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-10 01:56:30 +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,7 +2957,8 @@ function IFM( params ) {
array( $this, 'convertToUTF8' )
);
else
$item = utf8_encode( $item );
if( function_exists( "mb_check_encoding" ) && ! mb_check_encoding( $item, "UTF-8" ) )
$item = utf8_encode( $item );
}
public function checkAuth() {

View File

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

View File

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