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;