@@ -, +, @@ emails 1) Put some UTF-8 characters like รค in the HOLD template subject and body 2) Create hold and check-in an item to make it Waiting and cause the email to be send 3) Notice the email comes garbled / double encoded 4) Apply patch 5) Repeat step 2) and notice the email comes without any issues in encoding and look OK. 6) Make sure "prove t/Koha/Email.t" and "prove t/db_dependent/Letters.t" and passes --- C4/Letters.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/C4/Letters.pm +++ a/C4/Letters.pm @@ -1314,11 +1314,9 @@ sub _send_message_by_email { } } - # Encode subject line separately - $message->{subject} = encode('MIME-Header', $message->{'subject'} ); my $subject = $message->{'subject'}; - my $content = encode('UTF-8', $message->{'content'}); + my $content = $message->{'content'}; my $content_type = $message->{'content_type'} || 'text/plain; charset="UTF-8"'; my $is_html = $content_type =~ m/html/io; --