in reply to Re^2: encode params in Template into array ref
in thread encode params in Template into array ref

I'm not really sure what you mean by 'array', but I see that Template talks about 'hash array' (strange terminology... but whatever).
use Encode; my $enc = Encode::find_encoding('utf-8'); # or some other encoding... my %encoded = map { $enc->encode($_), $enc->encode( $decoded{$_} ) } keys %decoded;
Looks alright to me...

Replies are listed 'Best First'.
Re^4: encode params in Template into array ref
by schetchik (Beadle) on Dec 09, 2014 at 23:08 UTC
    I think it's just a typo.
    If you read Template::Config section, there is a mention about array reference.