function setCharset($charset) {
        $locale = setlocale(LC_CTYPE, 0);
        setlocale(LC_CTYPE, 'en_US');
        $this->_charset = strtolower($charset);
        setlocale(LC_CTYPE, $locale);
    }
function setCharset($charset) {
        $locale = setlocale(LC_CTYPE, 0);
        setlocale(LC_CTYPE, 'en_US');
        $this->_charset = strtolower($charset);
        setlocale(LC_CTYPE, $locale);
    }
function setCharset ( $ charset ) { $ locale = setlocale ( LC_CTYPE , 0 ) ; setlocale ( LC_CTYPE , 'en_US' ) ; $ this -> _charset = strtolower ( $ charset ) ; setlocale ( LC_CTYPE , $ locale ) ; }
Sets the charset of the provided table data.

@param string $charset A charset supported by the mbstring PHP
extension.

@return void
Sets the charset of the provided table data .