This page redirects to an external site: https://developer.wordpress.org/reference/hooks/wp_mail_charset/
The default character encoding for wp_mail() is UTF-8. The character encoding can be changed using the wp_mail_charset filter.
While the average user is unlikely to need to change the default character encoding for email, users who need to send email in different languages may find this filter useful.
The following will filter the character encoding to UTF-32
add_filter( 'wp_mail_charset', 'change_mail_charset' );
function change_mail_charset( $charset ) {
return 'UTF-32';
}
As of Version 3.5, WordPress character encoding is no longer configurable from the Administration Panel and defaults to UTF-8.
Since: Version 2.3
wp_mail_charset is located in wp-includes/pluggable.php