Core Function
View Source on Trac ↗ _is_utf8_charset()
_is_utf8_charset( mixed $charset_slug ) Indicates if a given slug for a character set represents the UTF-8 text encoding.
Parameters 1 required
| Name / Type | Description |
|---|---|
| string | $charset_slug Slug representing a text character encoding, or "charset". E.g. "UTF-8", "Windows-1252", "ISO-8859-1", "SJIS". Required |
Return Value
(bool)
Whether the slug represents the UTF-8 encoding.
Function Information
Since Version
6.6.1
Source File
wp-includes/compat.php
Advertisement