From: Moritz Bunkus Date: Wed, 19 Feb 2014 12:20:30 +0000 (+0100) Subject: Template-Toolkit-Konfiguration: Mitgeben, dass Templates in UTF-8 encodiert sind X-Git-Tag: release-3.2.0beta~491^2~8 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ceb551dd6fb0e83659a54b83feeaa99866e84fc9;p=kivitendo-erp.git Template-Toolkit-Konfiguration: Mitgeben, dass Templates in UTF-8 encodiert sind Damit ist die Verwendung von Nicht-ASCII-Zeichen direkt im HTML möglich. --- 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};