src/Phower/Escaper/Escaper.php
protected function toUtf8($string)
    {
        if ($this->getEncoding() === 'utf-8') {
            $result = $string;
        } else {
            $result = $this->convertEncoding($string, 'UTF-8', $this->getEncoding());
        }

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

        return $result;
    }
protected function toUtf8 ( $ string ) { if ( $ this -> getEncoding ( ) === 'utf-8' ) { $ result = $ string ; } else { $ result = $ this -> convertEncoding ( $ string , 'UTF-8' , $ this -> getEncoding ( ) ) ; } return $ result ; }
Convert string to UTF-8

@param string $string
@return string
@throws RuntimeException
Convert string to UTF - 8