diff --git a/lib/AccountManager/WebRequest.pm b/lib/AccountManager/WebRequest.pm index 7da9ed02dec23230a61cc5afba061bb9b7c54b0c..e2fa0b918ce6ce4973d0641854073929fa9105f4 100644 --- a/lib/AccountManager/WebRequest.pm +++ b/lib/AccountManager/WebRequest.pm @@ -142,6 +142,7 @@ sub respond { ## Parse template my $tt2 = Template->new({ + ENCODING => 'utf8', INCLUDE_PATH => $self->{configuration}->{_}->{templates_dir} . "/web/$lang" }); @@ -359,6 +360,7 @@ sub req_complete_challenge { }; my $tt2 = Template->new({ + ENCODING => 'utf8', INCLUDE_PATH => $self->{configuration}->{_}->{templates_dir} }); my $template = 'mail/send_authentication_token.tt2.eml'; @@ -531,6 +533,7 @@ sub req_create_accounts { my $lang = HTTP::AcceptLanguage->new($ENV{HTTP_ACCEPT_LANGUAGE})->match(qw/en fr/) || 'en'; my $tt2 = Template->new({ + ENCODING => 'utf8', INCLUDE_PATH => $self->{configuration}->{_}->{templates_dir} . "/web/$lang" });