diff --git a/static/application.js b/static/application.js index 72912f1c..a827ef13 100644 --- a/static/application.js +++ b/static/application.js @@ -1379,7 +1379,7 @@ function downloadStory(format) { } if(format == "plaintext") { - var objectURL = URL.createObjectURL(new Blob(actionlist_compiled)); + var objectURL = URL.createObjectURL(new Blob(actionlist_compiled, {type: "text/plain; charset=UTF-8"})); anchor.setAttribute('href', objectURL); anchor.setAttribute('download', filename_without_extension + ".txt"); anchor.click(); @@ -1425,7 +1425,7 @@ function downloadStory(format) { worldinfo: wilist_compiled, wifolders_d: wifolders_d, wifolders_l: wifolders_l, - }, null, 3)])); + }, null, 3)], {type: "application/json; charset=UTF-8"})); anchor.setAttribute('href', objectURL); anchor.setAttribute('download', filename_without_extension + ".json"); anchor.click(); diff --git a/templates/index.html b/templates/index.html index 88f55b06..72dcb784 100644 --- a/templates/index.html +++ b/templates/index.html @@ -17,7 +17,7 @@ - +