diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-06-16 04:42:06 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-06-16 04:42:06 +0000 |
commit | 0cd2cfb0393d52cadf162b4f1062033ea728eedb (patch) | |
tree | 4ca74dfece2883b9b897af6371355cf4bf4d0336 /IkiWiki | |
parent | 202c4d522f9f83d0e439b3846fb6a90e4eebee59 (diff) | |
download | ikiwiki-0cd2cfb0393d52cadf162b4f1062033ea728eedb.tar ikiwiki-0cd2cfb0393d52cadf162b4f1062033ea728eedb.tar.gz |
* Put back the encode_utf8 in the input to markdown; it's really not utf-8
safe.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Render.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 87546eeb3..d4e498188 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -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"); |