public function getCharsetString() { $charsetString = ''; if ($this->charset == 'utf-8') { $charsetString = ';CHARSET=' . $this->charset; } return $charsetString; }