_canonical_charset
- %1$s is private and should not be used in themes or plugins directly.
_canonical_charset ( $charset )
Access:Parameters:- (string) charset A charset name, e.g. "UTF-8", "Windows-1252", "SJIS".
See:Returns:- (string) The canonical form of the charset.
Defined at: - Introduced in WordPress: 3.6.0
- Deprecated in WordPress: —
Description
Retrieves a canonical form of the provided charset appropriate for passing to PHP
functions such as htmlspecialchars() and charset HTML attributes.