Charset Charset(string $charset) Charset(string $charset, string ...$charsets) Validates if a string is in a specific charset. v::charset('ASCII')->assert('sugar'); // Validation passes successfully v::charset('ASCII')->assert('açúcar'); // → "açúcar" must only contain characters from the `["ASCII"]` charset v::charset('ISO-8859-1', 'EUC-JP')->assert('日本国'); // Validation passes successfully The array format is a logic OR, not AND. Templates Charset::TEMPLATE_STANDARD Mode Template default {{subject}} must only contain characters from the {{charset|raw}} charset inverted {{subject}} must not contain any characters from the {{charset|raw}} charset Template placeholders Placeholder Description charset subject The validated input or the custom validator name (if specified). Categorization Strings Changelog Version Description 2.0.0 Charset supports multiple charsets on its constructor 0.5.0 Created See Also Alnum Alpha PhpLabel