diff --git a/VIRTUAL_VACATION/vacation.pl b/VIRTUAL_VACATION/vacation.pl index 9bc87585..b7f929a3 100644 --- a/VIRTUAL_VACATION/vacation.pl +++ b/VIRTUAL_VACATION/vacation.pl @@ -114,8 +114,10 @@ # http://dag.wieers.com/home-made/apt/packages.php # +use utf8; use DBI; -use MIME::Base64; +use MIME::Base64 qw(encode_base64); +use Encode qw(encode); use MIME::EncWords qw(:all); use Email::Valid; use strict; @@ -550,7 +552,7 @@ sub send_vacation_email { 'from' => $from, 'fake_from' => $friendly_from . " <$from>", 'to' => $to, - 'msg' => encode_base64($body) + 'msg' => encode_base64(encode("UTF-8", $body)) ); if($test_mode == 1) { $logger->info("** TEST MODE ** : Vacation response sent to $to from $from subject $subject (not) sent\n"); diff --git a/languages/pl.lang b/languages/pl.lang index b775f385..9da536f0 100644 --- a/languages/pl.lang +++ b/languages/pl.lang @@ -304,7 +304,7 @@ $PALANG['pUsersMain_edit_alias'] = 'Zmień przekierowania wiadomości.'; $PALANG['pUsersMain_password'] = 'Zmień aktualne hasło.'; -$PALANG['pUsersVacation_welcome'] = 'Automatyczną odpowiedź.'; +$PALANG['pUsersVacation_welcome'] = 'Automatyczna odpowiedź.'; $PALANG['pUsersVacation_welcome_text'] = 'Masz już skonfigurowaną automatyczną odpowiedź! (%s)'; # XXX Text changed to: 'Auto response for %s is active!' $PALANG['pUsersVacation_subject_text'] = 'Poza biurem'; $PALANG['message'] = 'Wiadomość';