is => 'ro',
isa => 'HashRef',
lazy => 1,
- default => sub { +{} },
+ default => sub { +{
+ ENCODING => 'UTF-8',
+ } },
);
sub log { shift; warn @_, "\n" }
$self->tt->process(
$page->{template},
$self->build_template_params( current_page => $page ),
- $outfile
+ $outfile,
+ { binmode => ':encoding(UTF-8)' },
) || confess $self->tt->error;
}