Quantcast
Channel: Active questions tagged filereader - Stack Overflow
Viewing all articles
Browse latest Browse all 107

FileReader.readAsArrayBuffer handling of non-ASCII including £ (pound sterling)

$
0
0

I am using FileReader.readAsArrayBuffer(file) and converting the result into a Uint8Array.

If the text file input contains a pound sterling sign (£), then this single character results in two byte codes, one for  and one for £. I understand that this is because £ is in the extended-ASCII set.

Is there a way to prevent this extra character? If not, will it always be an Â? If so, I can strip them out.


Viewing all articles
Browse latest Browse all 107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>