We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dad5a3 commit 339800dCopy full SHA for 339800d
src/helper/browser/createBase64WorkerFactory.js
@@ -5,7 +5,8 @@ function decodeBase64(base64, enableUnicode) {
5
for (var i = 0, n = binaryString.length; i < n; ++i) {
6
binaryView[i] = binaryString.charCodeAt(i);
7
}
8
- return String.fromCharCode.apply(null, new Uint16Array(binaryView.buffer));
+ const decoder = new TextDecoder("utf-16le")
9
+ return decoder.decode(new Uint16Array(binaryView.buffer));
10
11
return binaryString;
12
0 commit comments