fix for umlauts in templates, XSLT still buggy
authorChristopher Hall <chris.hall@catalyst.net.nz>
Mon, 20 Dec 2010 22:14:59 +0000 (11:14 +1300)
committerChristopher Hall <chris.hall@catalyst.net.nz>
Mon, 20 Dec 2010 22:14:59 +0000 (11:14 +1300)
C4/Templates.pm

index a598149..a3acd08 100644 (file)
@@ -98,6 +98,7 @@ sub output {
        $vars->{$k} = $self->{VARS}->{$k};
     }
     my $data;
+    binmode( STDOUT, ":utf8" );
     $template->process( $self->filename, $vars, \$data) || die "Template process failed: ", $template->error();; 
     return $data;
 }