In stringtoBase64, don't escape the input, and in base64toString don't unescape the result.
diff --git a/js/encoding/DataUtils.js b/js/encoding/DataUtils.js
index b80ce36..da8dd6a 100644
--- a/js/encoding/DataUtils.js
+++ b/js/encoding/DataUtils.js
@@ -26,7 +26,7 @@
* Raw String to Base 64
*/
DataUtils.stringtoBase64=function stringtoBase64(input) {
- input = escape(input);
+ //input = escape(input);
var output = "";
var chr1, chr2, chr3 = "";
var enc1, enc2, enc3, enc4 = "";
@@ -104,7 +104,7 @@
} while (i < input.length);
- return unescape(output);
+ //return unescape(output);
};
//byte []