needed in template params for utf8 data, seems to not mind being in two places
authorChristopher Hall <chris.hall@catalyst.net.nz>
Mon, 31 Jan 2011 22:42:44 +0000 (11:42 +1300)
committerChristopher Hall <chris.hall@catalyst.net.nz>
Mon, 31 Jan 2011 22:42:44 +0000 (11:42 +1300)
C4/Templates.pm

index a598149..9a07d95 100644 (file)
@@ -108,6 +108,7 @@ sub param{
     while(@_){
        my $key = shift;
        my $val = shift;
+        utf8::encode($val) if utf8::is_utf8($val);
        $self->{VARS}->{$key} = $val;
     }
 }