From f3d82d34927d2146de1e8cc984cd7cb551a508fe Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 18 Apr 2013 11:09:41 -0300 Subject: [PATCH] Bug 10074 - Revert small change in C4/Templates.pm One of this bug's patches removed the addition of BOM from the templates by setting ENCODING=>'utf8'. This change was found to be the cause of several random problems with encodings. This patch reverts it. Regards To+ --- C4/Templates.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/C4/Templates.pm b/C4/Templates.pm index 7f50143..5da4ee5 100644 --- a/C4/Templates.pm +++ b/C4/Templates.pm @@ -66,8 +66,7 @@ sub new { COMPILE_EXT => C4::Context->config('template_cache_dir')?'.ttc':'', COMPILE_DIR => C4::Context->config('template_cache_dir')?C4::Context->config('template_cache_dir'):'',, INCLUDE_PATH => \@includes, - FILTERS => {}, - ENCODING => 'utf8', # templates don't have BOM, see Template::FAQ + FILTERS => {} } ) or die Template->error(); my $self = { -- 1.8.1.2