protected function _encodeString($text, $charset)
    {
        if ($this->_appCharset === $charset) {
            return $text;
        }

        return mb_convert_encoding($text, $charset, $this->_appCharset);
    }
protected function _encodeString($text, $charset)
    {
        if ($this->_appCharset === $charset) {
            return $text;
        }

        return mb_convert_encoding($text, $charset, $this->_appCharset);
    }
protected function _encodeString ( $ text , $ charset ) { if ( $ this -> _appCharset === $ charset ) { return $ text ; } return mb_convert_encoding ( $ text , $ charset , $ this -> _appCharset ) ; }
Translates a string for one charset to another if the App.encoding value
differs and the mb_convert_encoding function exists

@param string $text The text to be converted
@param string $charset the target encoding
@return string
Translates a string for one charset to another if the App . encoding value differs and the mb_convert_encoding function exists