From: intrigeri Date: Sun, 2 Nov 2008 20:35:52 +0000 (+0100) Subject: po plugin: force utf-8 encoding in POT files X-Git-Tag: 3.15~407^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=773de05a7a1ee68d2bed173367cf5e716884945a;p=ikiwiki.git po plugin: force utf-8 encoding in POT files Signed-off-by: intrigeri --- diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 0902322e3..59d938d82 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -134,6 +134,7 @@ sub refreshpot ($) { #{{{ # compulsory since this module prevents us from using the porefs option. my %po_options = ('porefs' => 'none'); $doc->{TT}{po_out}=Locale::Po4a::Po->new(\%po_options); + $doc->{TT}{po_out}->set_charset('utf-8'); # do the actual work $doc->parse; $doc->writepo($potfile);