private function utf8(&$value, &$key)
    {
        if (is_string($value)) {
            $value = utf8_encode($value);
        }

        if (is_array($value)) {
            array_walk_recursive($value, array($this, 'utf8'));
        }
  }
private function utf8(&$value, &$key)
    {
        if (is_string($value)) {
            $value = utf8_encode($value);
        }

        if (is_array($value)) {
            array_walk_recursive($value, array($this, 'utf8'));
        }
  }
private function utf8 ( & $ value , & $ key ) { if ( is_string ( $ value ) ) { $ value = utf8_encode ( $ value ) ; } if ( is_array ( $ value ) ) { array_walk_recursive ( $ value , array ( $ this , 'utf8' ) ) ; } }
Encode the result recursivily as utf8.

@param mixed  $value
@param string $key
Encode the result recursivily as utf8 .