From b3391e2901532cffa12eaf3cbab1af66791551ca Mon Sep 17 00:00:00 2001 From: Adrian Hinz Date: Wed, 19 Oct 2016 13:28:33 +0200 Subject: [PATCH] F --- conv.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conv.html b/conv.html index 4830e09..03887f4 100644 --- a/conv.html +++ b/conv.html @@ -174,7 +174,7 @@
- +
@@ -357,9 +357,9 @@ function convert_base64() { if ($('input[name=base64RadioOptions]:checked').val() == "text") { - $('#base64_output').html(window.btoa($('#base64_text').val())); + $('#base64_output').html(window.btoa(unescape(encodeURIComponent($('#base64_text').val())))); } else { - $('#base64_output').html(window.atob($('#base64_text').val())); + $('#base64_output').html(decodeURIComponent(escape(window.atob($('#base64_text').val())))); } return false;