utf8_decode()
Deprecated. It is no longer supported and may be removed in future releases. See
{@see \mb_convert_encoding()}.Converts a string from UTF-8 to ISO-8859-1.
No Hooks.
Returns
String. Text converted into ISO-8859-1.
Usage
utf8_decode( $utf8_text ): string;
- $utf8_text(string) (required)
- Text treated as UTF-8.
Changelog
| Since 6.9.0 | Introduced. |
| Deprecated | Use {@see \mb_convert_encoding()} instead. |
utf8_decode() utf8 decode code WP 6.9.1
function utf8_decode( $utf8_text ): string {
_deprecated_function( __FUNCTION__, '6.9.0', 'mb_convert_encoding' );
return mb_convert_encoding( $utf8_text, 'ISO-8859-1', 'UTF-8' );
}
else :
/**
* @ignore
* @private
*
* @since 6.9.0
*/
function utf8_decode( $utf8_text ): string {
_deprecated_function( __FUNCTION__, '6.9.0', 'mb_convert_encoding' );
return _wp_utf8_decode_fallback( $utf8_text );
}