src/MalScraper/Helper/Helper.php
private static function superEncode($array)
    {
        if (is_array($array) && !empty($array)) {
            foreach ($array as $key => $value) {
                if (is_array($value)) {
                    $array[$key] = self::superEncode($value);
                } else {
                    $array[$key] = mb_convert_encoding($value, 'UTF-8', 'UTF-8');
                }
            }
        }

        return $array;
    }
private static function superEncode($array)
    {
        if (is_array($array) && !empty($array)) {
            foreach ($array as $key => $value) {
                if (is_array($value)) {
                    $array[$key] = self::superEncode($value);
                } else {
                    $array[$key] = mb_convert_encoding($value, 'UTF-8', 'UTF-8');
                }
            }
        }

        return $array;
    }
private static function superEncode ( $ array ) { if ( is_array ( $ array ) && ! empty ( $ array ) ) { foreach ( $ array as $ key => $ value ) { if ( is_array ( $ value ) ) { $ array [ $ key ] = self :: superEncode ( $ value ) ; } else { $ array [ $ key ] = mb_convert_encoding ( $ value , 'UTF-8' , 'UTF-8' ) ; } } } return $ array ; }
Convert characters to UTF-8.

@param array|string $array

@return array|string
Convert characters to UTF - 8 .