From ee57119f0ed48c07c1ee61bc6bf4c42848cb6142 Mon Sep 17 00:00:00 2001 From: Stephan Gabler Date: Fri, 10 Aug 2012 21:29:29 +0200 Subject: [PATCH] fix unicode display in the browser --- jrnl/exporters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jrnl/exporters.py b/jrnl/exporters.py index 04c5df8f..046f42f0 100644 --- a/jrnl/exporters.py +++ b/jrnl/exporters.py @@ -13,6 +13,7 @@ import codecs html_skeleton = ''' + %s @@ -45,7 +46,7 @@ def to_html(journal, open_in_browser=False): """renders the given journal to html and can open it in the default browser""" bla = to_md(journal) - html_body = markdown.markdown(bla.decode('utf-8')) + html_body = markdown.markdown(bla.decode('utf8')) print html_body tmp_file = os.path.join(tempfile.gettempdir(), "pretty.html") url = 'file://' + tmp_file