diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-05-26 15:33:14 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-05-26 15:33:14 +0000 |
commit | 29507e94a46d0f2006671d31ac6812ebd0715cee (patch) | |
tree | 9d66bda3cf499ecd43d82c1bcf4e763e7e312ce8 /IkiWiki | |
parent | 361ec86696628cdfe2f8904211c8b747bde10468 (diff) |
utf-8 support seems to be working now
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Render.pm | 5 |
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"); |