Skip to content

Commit

Permalink
Merge pull request #546 from floryst/binary_helper_text_decoding
Browse files Browse the repository at this point in the history
fix(BinaryHelper): Use latin1 for text decoding
  • Loading branch information
floryst authored Jan 30, 2018
2 parents 4424b3f + 9b40a72 commit ba56a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/IO/Core/BinaryHelper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
function arrayBufferToString(arrayBuffer) {
if ('TextDecoder' in window) {
const decoder = new TextDecoder();
const decoder = new TextDecoder('latin1');
return decoder.decode(arrayBuffer);
}
// fallback on platforms w/o TextDecoder
Expand Down

0 comments on commit ba56a5f

Please sign in to comment.