aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r--IkiWiki/Render.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index f33d6e66e..08f5e7e95 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -28,10 +28,13 @@ sub htmlize ($$) { #{{{
$blosxom::version="is a proper perl module too much to ask?";
use warnings 'all';
do "/usr/bin/markdown";
+ require Encode;
}
if ($type eq '.mdwn') {
- $content=Markdown::Markdown($content);
+ # Markdown does character based stuff that does not work
+ # well with utf-8 strings.
+ $content=Encode::decode_utf8(Markdown::Markdown(Encode::encode_utf8($content)));
}
else {
error("htmlization of $type not supported");