src/PdoDataSource.php
public function setCharset($charset = null) {
		$this->charset = $charset !== null ? (string) $charset : null;

		return $this;
	}
public function setCharset($charset = null) {
		$this->charset = $charset !== null ? (string) $charset : null;

		return $this;
	}
Sets the charset

@param string|null $charset the character encoding, e.g. `utf8`
@return static this instance for chaining