in reply to encode params in Template into array ref

Encode your strings manually then...
  • Comment on Re: encode params in Template into array ref

Replies are listed 'Best First'.
Re^2: encode params in Template into array ref
by schetchik (Beadle) on Dec 09, 2014 at 17:53 UTC
    Now i manualy encode result array reference of strings, but it's not comfortably.
      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...
        I think it's just a typo.
        If you read Template::Config section, there is a mention about array reference.