Bug 10605: fix encoding issue on basket email (INTRANET)

Same fix for the staff interface.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Both patches tested with English and German, diacritics
now appear correctly if UTF-8 is selected as encoding.
Passes all tests and QA script.

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 62fcbea10a)
Signed-off-by: Fridolin SOMERS <fridolin.somers@biblibre.com>
(cherry picked from commit 6d16356a1a)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jonathan Druart 2013-11-14 11:31:23 +01:00 committed by Tomas Cohen Arazi
parent b9388c4f60
commit 01a39d6ce0
1 changed files with 2 additions and 1 deletions

View File

@ -131,8 +131,9 @@ if ( $email_add ) {
}
if ( $template_res =~ /<MESSAGE>(.*)<END_MESSAGE>/s ) {
$body = encode_qp($1);
$body = $1;
$body =~ s|\n?(.*)\n?|$1|;
$body = encode("UTF-8", encode_qp($body));
}
my $boundary = "====" . time() . "====";