Core Function
View Source on Trac ↗ _canonical_charset()
_canonical_charset( mixed $charset ) Retrieves a canonical form of the provided charset appropriate for passing to PHP
Parameters 1 required
| Name / Type | Description |
|---|---|
| $charset string | A charset name, e.g. "UTF-8", "Windows-1252", "SJIS". Required |
Return Value
(string)
The canonical form of the charset.
Function Information
Since Version
3.6.0
Source File
wp-includes/functions.php
Advertisement