]> sipb.mit.edu Git - ikiwiki.git/commitdiff
po plugin: force utf-8 encoding in POT files
authorintrigeri <intrigeri@boum.org>
Sun, 2 Nov 2008 20:35:52 +0000 (21:35 +0100)
committerintrigeri <intrigeri@boum.org>
Sun, 2 Nov 2008 20:35:52 +0000 (21:35 +0100)
Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki/Plugin/po.pm

index 0902322e31be9fbe5d41dba47fe75e3384f37e48..59d938d821151a1f9f0ec3bac27c1a18f8c406ec 100644 (file)
@@ -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);