diff --git a/updater.sh b/updater.sh index 4cc3f89..8ecfcc0 100644 --- a/updater.sh +++ b/updater.sh @@ -255,14 +255,17 @@ Log: export PVE_UPDATER_MESSAGE="$message" export PVE_UPDATER_TEMPLATE="$NOTIFY_TEMPLATE" - if perl -MPVE::Notify -e ' + if perl -MPVE::Notify -MEncode=decode -e ' my $severity = $ENV{PVE_UPDATER_SEVERITY}; my $template = $ENV{PVE_UPDATER_TEMPLATE}; + my $title = decode("UTF-8", ($ENV{PVE_UPDATER_TITLE} // "")); + my $message = decode("UTF-8", ($ENV{PVE_UPDATER_MESSAGE} // "")); + my $data = { %{PVE::Notify::common_template_data()}, - title => ($ENV{PVE_UPDATER_TITLE} // ""), - message => ($ENV{PVE_UPDATER_MESSAGE} // ""), + title => $title, + message => $message, }; my $fields = {