When I use some Chinese translation interface, the email title will be in Chinese but it can not be display correctly. I am not sure it is a bug or not, maybe depending on the server settings. However, I have modified the source code to make it work well now.
In my case, I choosed "UTF-8" encoding.
-
src/lyceum/wp-includes/pluggable-functions.php
| old |
new |
|
| 164 | 164 | |
|---|
| 165 | 165 | if ( !function_exists('wp_mail') ) : |
|---|
| 166 | 166 | function wp_mail($to, $subject, $message, $headers = '') { |
|---|
| | 167 | |
|---|
| | 168 | mb_language("uni");//PEAK |
|---|
| | 169 | mb_internal_encoding("UTF-8");//PEAK |
|---|
| | 170 | |
|---|
| 167 | 171 | if( $headers == '' ) { |
|---|
| 168 | 172 | $headers = "MIME-Version: 1.0\n" . |
|---|
| 169 | 173 | "From: \"".get_settings('site_title').'"<'.get_settings('system_admin_email').'>' . "\n" . |
|---|
| 170 | 174 | "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n"; |
|---|
| 171 | 175 | } |
|---|
| 172 | 176 | |
|---|
| 173 | | return @mail($to, $subject, $message, $headers); |
|---|
| | 177 | return @mb_send_mail($to, $subject, $message, $headers);//PEAK |
|---|
| 174 | 178 | } |
|---|
| 175 | 179 | endif; |
|---|
| 176 | 180 | |
Here is the reference page. It seems it has only relation with Japanese one and UTF-8 .
http://jp2.php.net/mb_language