@@ -, +, @@ - Create a list, name it using umlauts or other diacritics Example: Jugendbücher (books for youths in German) - Add some items to your list - Email yourself the list - Verify that the email subject is broken - Install another language with non-latin characters like Greek - Fill the cart with some titles - Send yourself the cart - Verify that the email subject is broken It's known to be incorrect in Outlook and web.de, displaying nicely in Thunderbird. --- basket/sendbasket.pl | 2 +- opac/opac-sendbasket.pl | 2 +- opac/opac-sendshelf.pl | 2 +- virtualshelves/sendshelf.pl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) --- a/basket/sendbasket.pl +++ a/basket/sendbasket.pl @@ -112,7 +112,7 @@ if ( $email_add ) { if ( $template_res =~ /(.*)/s ) { $mail{subject} = $1; $mail{subject} =~ s|\n?(.*)\n?|$1|; - $mail{subject} = Encode::encode("UTF-8", $mail{subject}); + $mail{subject} = encode('MIME-Header',$mail{subject}); } else { $mail{'subject'} = "no subject"; } --- a/opac/opac-sendbasket.pl +++ a/opac/opac-sendbasket.pl @@ -133,7 +133,7 @@ if ( $email_add ) { if ( $template_res =~ /(.*)/s ) { $mail{subject} = $1; $mail{subject} =~ s|\n?(.*)\n?|$1|; - $mail{subject} = Encode::encode("UTF-8", $mail{subject}); + $mail{subject} = encode('MIME-Header',$mail{subject}); } else { $mail{'subject'} = "no subject"; } --- a/opac/opac-sendshelf.pl +++ a/opac/opac-sendshelf.pl @@ -136,7 +136,7 @@ if ( $email ) { $mail{subject} =~ s|\n?(.*)\n?|$1|; } else { $mail{'subject'} = "no subject"; } - $mail{subject} = Encode::encode("UTF-8", $mail{subject}); + $mail{subject} = encode('MIME-Header', $mail{subject}); my $email_header = ""; if ( $template_res =~ /
(.*)/s ) { --- a/virtualshelves/sendshelf.pl +++ a/virtualshelves/sendshelf.pl @@ -113,7 +113,7 @@ if ($email) { # Analysing information and getting mail properties if ( $template_res =~ /(.*)/s ) { - $mail{'subject'} = Encode::encode("UTF-8", $1); + $mail{'subject'} = encode('MIME-Header', $1); $mail{subject} =~ s|\n?(.*)\n?|$1|; } else { $mail{'subject'} = "no subject"; } --