WPDev.one
Core Function
View Source on Trac ↗

is_utf8_charset()

is_utf8_charset( mixed $blog_charset = null )

Indicates if a given slug for a character set represents the UTF-8

Parameters 1 required

Name / Type Description
mixed

(string | null) $blog_charset Optional. Slug representing a text character encoding, or "charset". E.g. "UTF-8", "Windows-1252", "ISO-8859-1", "SJIS". Default value is to infer from "blog_charset" option.

Required

Return Value

(bool)
Whether the slug represents the UTF-8 encoding.

Function Information

Since Version
6.6.0
Source File
wp-includes/functions.php
Advertisement