protected function attachCharsetFilter($fromCharset, $toCharset)
    {
        if ($this->charsetStream !== null) {
            $this->charsetStream = new CachingStream($this->streamFactory->newCharsetStream(
                $this->charsetStream,
                $fromCharset,
                $toCharset
            ));
            $this->charset['from'] = $fromCharset;
            $this->charset['to'] = $toCharset;
        }
    }
protected function attachCharsetFilter($fromCharset, $toCharset)
    {
        if ($this->charsetStream !== null) {
            $this->charsetStream = new CachingStream($this->streamFactory->newCharsetStream(
                $this->charsetStream,
                $fromCharset,
                $toCharset
            ));
            $this->charset['from'] = $fromCharset;
            $this->charset['to'] = $toCharset;
        }
    }
protected function attachCharsetFilter ( $ fromCharset , $ toCharset ) { if ( $ this -> charsetStream !== null ) { $ this -> charsetStream = new CachingStream ( $ this -> streamFactory -> newCharsetStream ( $ this -> charsetStream , $ fromCharset , $ toCharset ) ) ; $ this -> charset [ 'from' ] = $ fromCharset ; $ this -> charset [ 'to' ] = $ toCharset ; } }
Attaches a charset conversion filter to the attached content handle, for
the passed arguments.

@param string $fromCharset the character set the content is encoded in
@param string $toCharset the target encoding to return
Attaches a charset conversion filter to the attached content handle for the passed arguments .