Decode UTF-8 when reading export results in org.pm.
authorW. Trevor King <wking@drexel.edu>
Wed, 6 Oct 2010 15:03:08 +0000 (11:03 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 6 Oct 2010 15:03:08 +0000 (11:03 -0400)
IkiWiki/Plugin/org.pm

index 28cef07fbe74337ac60653003bfba7557d2d6b0f..94b8314003d68dc9366fb6eb7badb0c4317d9f32 100644 (file)
@@ -4,6 +4,7 @@ package IkiWiki::Plugin::org;
 
 use warnings;
 use strict;
+use utf8;
 use File::Temp;
 use IkiWiki 3.00;
 
@@ -81,6 +82,7 @@ sub htmlize (@) {
        #$args =~ s/FILE/posts\/Git\/notes.org/g;
        debug("Executing: $args");
        my $content = `$args`;
+       utf8::decode($content);
        return $content;
 }