]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Render.pm
* Put back the encode_utf8 in the input to markdown; it's really not utf-8
[ikiwiki.git] / IkiWiki / Render.pm
index 87546eeb3c785259df656ef67f24030fd0e2e15a..d4e498188aad43c37f05fd28a094a951758b0a14 100644 (file)
@@ -29,10 +29,11 @@ sub htmlize ($$) { #{{{
                $blosxom::version="is a proper perl module too much to ask?";
                use warnings 'all';
                do "/usr/bin/markdown";
+               use Encode;
        }
        
        if ($type eq '.mdwn') {
-               $content=Markdown::Markdown($content);
+               $content=Encode::decode_utf8(Markdown::Markdown(Encode::encode_utf8($content)));
        }
        else {
                error("htmlization of $type not supported");