diff --git a/lib/serializers/base-64.js b/lib/serializers/base-64.js index d888f50f2..10e35db92 100644 --- a/lib/serializers/base-64.js +++ b/lib/serializers/base-64.js @@ -10,7 +10,7 @@ import Raw from './raw' function encode(object) { const string = JSON.stringify(object) - const encoded = window.btoa(window.unescape(window.encodeURIComponent(string))) + const encoded = window.btoa(window.encodeURIComponent(string)) return encoded } @@ -22,7 +22,7 @@ function encode(object) { */ function decode(string) { - const decoded = window.decodeURIComponent(window.escape(window.atob(string))) + const decoded = window.decodeURIComponent(window.atob(string)) const object = JSON.parse(decoded) return object }