]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/po.pm
po plugin: force utf-8 encoding in POT files
[ikiwiki.git] / 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);