From ceb551dd6fb0e83659a54b83feeaa99866e84fc9 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 19 Feb 2014 13:20:30 +0100 Subject: [PATCH] Template-Toolkit-Konfiguration: Mitgeben, dass Templates in UTF-8 encodiert sind MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Damit ist die Verwendung von Nicht-ASCII-Zeichen direkt im HTML möglich. --- SL/Form.pm | 1 + SL/Presenter.pm | 1 + 2 files changed, 2 insertions(+) diff --git a/SL/Form.pm b/SL/Form.pm index 0c532ce6e..875b726c1 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -673,6 +673,7 @@ sub init_template { 'COMPILE_EXT' => '.tcc', 'COMPILE_DIR' => $::lx_office_conf{paths}->{userspath} . '/templates-cache', 'ERROR' => 'templates/webpages/generic/exception.html', + 'ENCODING' => 'utf8', })) || die; } diff --git a/SL/Presenter.pm b/SL/Presenter.pm index 36186c4ec..23b8ad472 100644 --- a/SL/Presenter.pm +++ b/SL/Presenter.pm @@ -116,6 +116,7 @@ sub get_template { COMPILE_EXT => '.tcc', COMPILE_DIR => $::lx_office_conf{paths}->{userspath} . '/templates-cache', ERROR => 'templates/webpages/generic/exception.html', + ENCODING => 'utf8', }) || croak; return $self->{template}; -- 2.20.1