From 5599f9f9338a5f96080143b2192214a78b961509 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 3 Nov 2014 16:20:49 +0000 Subject: [PATCH] Fix problem with UTF-8 encoding of HTML tiddelrs Fixes #1037 --- core/modules/parsers/htmlparser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/parsers/htmlparser.js b/core/modules/parsers/htmlparser.js index a42a22753..4a47c6520 100644 --- a/core/modules/parsers/htmlparser.js +++ b/core/modules/parsers/htmlparser.js @@ -17,7 +17,7 @@ var HtmlParser = function(type,text,options) { if(options._canonical_uri) { src = options._canonical_uri; } else if(text) { - src = "data:text/html," + encodeURIComponent(text); + src = "data:text/html;charset=utf-8," + encodeURIComponent(text); } this.tree = [{ type: "element",