/** * Sets the charset to use when validating strings. * * @param string $charset The charset */ public static function setCharset($charset) { self::$charset = $charset; }