The responseText of a call is full of replacement unicode characters (U+FFFD) �. I cannot set the responseType to arraybuffer. Answer where responseType can be set as 'arraybuffer'
Is there a way to recover the original binaries (raw data) which has been cast into the String?
console.log(xhr.responseText); // 'at�'
console.log(xhr.responseText.codePointAt(0)); // '97'
console.log(xhr.responseText.codePointAt(1)); // '116'
console.log(xhr.responseText.codePointAt(2)); // '65533'
1) Is the data lost when it is cast into a String by Javascript?
OR
2) Is the data safe as a String, but I just haven't found the right way to decode it to binary/hex/decimal? (In that, the data is fine but when printed it just displays the replacement character.)