protected function fromUtf8($string)
    {
        if ($this->getEncoding() === 'utf-8') {
            return $string;
        }

        return $this->convertEncoding($string, $this->getEncoding(), 'UTF-8');
    }
protected function fromUtf8($string)
    {
        if ($this->getEncoding() === 'utf-8') {
            return $string;
        }

        return $this->convertEncoding($string, $this->getEncoding(), 'UTF-8');
    }
protected function fromUtf8 ( $ string ) { if ( $ this -> getEncoding ( ) === 'utf-8' ) { return $ string ; } return $ this -> convertEncoding ( $ string , $ this -> getEncoding ( ) , 'UTF-8' ) ; }
Converts a string from UTF-8 to the base encoding. The base encoding is set via this
class' constructor.
@param string $string
@return string
Converts a string from UTF - 8 to the base encoding . The base encoding is set via this class constructor .