public function getAsString(): string
    {
        $text = iconv(
            $this->source->getEncoding(),
            $this->getEncoding(),
            $this->source->getAsString()
        );
        if (false === $text) {
            throw new SourceException('iconv failed to convert source text');
        }

        return $text;
    }
public function getAsString(): string
    {
        $text = iconv(
            $this->source->getEncoding(),
            $this->getEncoding(),
            $this->source->getAsString()
        );
        if (false === $text) {
            throw new SourceException('iconv failed to convert source text');
        }

        return $text;
    }
public function getAsString ( ) : string { $ text = iconv ( $ this -> source -> getEncoding ( ) , $ this -> getEncoding ( ) , $ this -> source -> getAsString ( ) ) ; if ( false === $ text ) { throw new SourceException ( 'iconv failed to convert source text' ) ; } return $ text ; }
Return text in the specified encoding.

@return string

@throws SourceException
@since 1.6
Return text in the specified encoding .