From: Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 Date: Tue, 6 Apr 2010 12:08:59 +0000 (+0200) Subject: Unicode fixes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dc40457bac0841371d56be37b7cd9f2ea609b870;p=gitmo%2Fmoose-website.git Unicode fixes --- diff --git a/lib/Moose/Website.pm b/lib/Moose/Website.pm index bdaa817..e5591fa 100644 --- a/lib/Moose/Website.pm +++ b/lib/Moose/Website.pm @@ -103,7 +103,9 @@ has 'template_config' => ( is => 'ro', isa => 'HashRef', lazy => 1, - default => sub { +{} }, + default => sub { +{ + ENCODING => 'UTF-8', + } }, ); sub log { shift; warn @_, "\n" } @@ -120,7 +122,8 @@ sub run { $self->tt->process( $page->{template}, $self->build_template_params( current_page => $page ), - $outfile + $outfile, + { binmode => ':encoding(UTF-8)' }, ) || confess $self->tt->error; }