Permalink
Browse files

Fixes #6 — Encoding should be set in the HTML exported files

  • Loading branch information...
1 parent 29834f5 commit a63c2a1a32e3f421f4c291546382a3909953c6ad @dmfrancisco committed Jul 17, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 public/js/script.js
View
@@ -404,8 +404,8 @@ var escrito = function () {
" pre, tt, code { font: 12px Menlo, Monaco, Consolas, 'Lucida Console', monospace; }",
" </style>"
], uriContent = "data:application/octet-stream," +
- encodeURIComponent("<html>\n<head>\n"+ attrs.join("\n") +"\n<head>\n<body>\n"+ $('#paper').html() +
- "\n</body>\n</html>\n");
+ encodeURIComponent("<html>\n<head>\n <meta charset=\"UTF-8\">\n"+ attrs.join("\n") +"\n<head>\n" +
+ "<body>\n"+ $('#paper').html() + "\n</body>\n</html>\n");
document.location.href = uriContent;
}

0 comments on commit a63c2a1

Please sign in to comment.