[wp-trac] Re: [WordPress Trac] #6788: wp-mail.php utf8 (umlauts)
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 23 06:57:00 GMT 2008
#6788: wp-mail.php utf8 (umlauts)
------------------------------------------------+---------------------------
Reporter: revolution48 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5.1
Component: General | Version: 2.5
Severity: major | Resolution:
Keywords: utf8, wp-mail.php, deutsch, umlaut |
------------------------------------------------+---------------------------
Comment (by Laenny):
A more general solution would be nicer, this one only works for ISO-8859-1
to UTF-8 conversion.
Most German Email programs use ISO-8859-1 by default, but since Wordpress
does not have only have German users...
You proposed patch would break if UTF-8 encoding was used, for example.
I will try to find a nice, general solution using the iconv-Library.
For the subject I have done it by now:
Line 64:
old:
$subject = wp_iso_descrambler($subject);
new:
$subject = iconv_mime_decode($subject,2,'utf8');
(why reinvent the wheel?) - works like a charm with utf8 AND ISO-8859-1
subjects.
I will come back later and try to present a solution for the email body.
--
Ticket URL: <http://trac.wordpress.org/ticket/6788#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list