fromEncoding, $this->fromEncoding, $response->body ); if ( $test !== $response->body ) { throw new ezcMvcInvalidEncodingException( $response->body, $this->fromEncoding ); } $res = @iconv( $this->fromEncoding, $this->toEncoding . '//IGNORE', $response->body ); $response->body = $res; } /** * Should not be called with any options, as this filter doesn't support any. * * @throws ezcMvcFilterHasNoOptionsException if the $options array is not * empty. * @param array $options */ public function setOptions( array $options ) { foreach ( $options as $option => $value ) { switch ( $option ) { case 'fromEncoding': case 'toEncoding': $this->$option = $value; break; default: throw new ezcBasePropertyNotFoundException( $option ); } } } } ?>