protected function utf8_converter($array)
    {
        array_walk_recursive($array, function(&$item, $key){
            if(! mb_detect_encoding($item, 'utf-8', true)){
                $item = utf8_encode($item);
            }
        });

        return $array;
    }
protected function utf8_converter($array)
    {
        array_walk_recursive($array, function(&$item, $key){
            if(! mb_detect_encoding($item, 'utf-8', true)){
                $item = utf8_encode($item);
            }
        });

        return $array;
    }
protected function utf8_converter ( $ array ) { array_walk_recursive ( $ array , function ( & $ item , $ key ) { if ( ! mb_detect_encoding ( $ item , 'utf-8' , true ) ) { $ item = utf8_encode ( $ item ) ; } } ) ; return $ array ; }
A special way to convert UTF8 encoding into JSON. Useful for dns
provides like Google who sometimes return records with special
chars in the records.

See: https://stackoverflow.com/questions/12236459/convert-arrays-into-utf-8-php-json

@param  array  $array
@return array
A special way to convert UTF8 encoding into JSON . Useful for dns provides like Google who sometimes return records with special chars in the records .