fixed XSLT utf8 bugs
authorChristopher Hall <chris.hall@catalyst.net.nz>
Tue, 25 Jan 2011 02:14:52 +0000 (15:14 +1300)
committerChristopher Hall <chris.hall@catalyst.net.nz>
Tue, 25 Jan 2011 02:14:52 +0000 (15:14 +1300)
C4/Templates.pm

index a3acd08..8467b9c 100644 (file)
@@ -109,6 +109,7 @@ sub param{
     while(@_){
        my $key = shift;
        my $val = shift;
+        utf8::decode($val) if $key eq "XSLTBloc";
        $self->{VARS}->{$key} = $val;
     }
 }