From deef70fdd18e9e45971610f18a06ae114ced1f78 Mon Sep 17 00:00:00 2001
From: Guillaume Rousse <guillaume.rousse@renater.fr>
Date: Mon, 5 Mar 2018 18:12:06 +0100
Subject: [PATCH] fix utf8 chars in email

---
 lib/AccountManager/App.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/AccountManager/App.pm b/lib/AccountManager/App.pm
index 0f52e0d..96e3c15 100644
--- a/lib/AccountManager/App.pm
+++ b/lib/AccountManager/App.pm
@@ -496,6 +496,8 @@ sub req_complete_challenge {
         token     => $token->token(),
     };
 
+    binmode($handle, ":utf8");
+
     unless ($tt2->process($template, $data, $handle)) {
         $self->{logger}->errorf("Mail notification error: %s", $tt2->error());
         $self->respond(
-- 
GitLab