po plugin: force utf-8 encoding in POT files

Signed-off-by: intrigeri <intrigeri@boum.org>
master
intrigeri 2008-11-02 21:35:52 +01:00
parent 2ebc0bb82d
commit 773de05a7a
1 changed files with 1 additions and 0 deletions

View 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);