aboutsummaryrefslogtreecommitdiffstats
path: root/server/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--server/templates/server/doc_create.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/templates/server/doc_create.html b/server/templates/server/doc_create.html
index 908d1eb..6ba708c 100644
--- a/server/templates/server/doc_create.html
+++ b/server/templates/server/doc_create.html
@@ -200,7 +200,8 @@ $(document).ready(function(){
function preview() {
var param = document.getElementById("param").value;
- var param_base64 = btoa(param);
+ let utf8Encode = new TextEncoder();
+ var param_base64 = btoa(String.fromCharCode.apply(null, new Uint8Array(utf8Encode.encode(param))));
window.open("{%url 'custom_parameters_preview' %}?param=" + param_base64);
}
{% endblock %} \ No newline at end of file