summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-07-07 16:31:18 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-07-07 16:31:18 -0400
commitfeae031a80805550b38cb4fd9694d01ce7ef0627 (patch)
tree46f079bb42e61e27ddcadab50e05074eeff51270 /IkiWiki
parentf7f4353f14794f958505f3209d546ad1a7cf87dc (diff)
highlight: Fix utf-8 encoding bug. Closes: #535028
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/highlight.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/highlight.pm b/IkiWiki/Plugin/highlight.pm
index 20f79ef57..9bdde85ae 100644
--- a/IkiWiki/Plugin/highlight.pm
+++ b/IkiWiki/Plugin/highlight.pm
@@ -4,6 +4,7 @@ package IkiWiki::Plugin::highlight;
use warnings;
use strict;
use IkiWiki 3.00;
+use Encode;
# locations of highlight's files
my $filetypes="/etc/highlight/filetypes.conf";
@@ -69,7 +70,7 @@ sub htmlizefallback {
return;
}
- return highlight($langfile, shift);
+ return Encode::decode_utf8(highlight($langfile, shift));
}
my %ext2lang;