So as an example, when I read the π character (\u03C0) from a File using the FileReader API, I get the pi character back to me when I read it using FileReader.readAsText(blob) which is expected. But when I use FileReader.readAsBinaryString(blob), I get the result \xcf\x80 instead, which doesn’t seem to have any visible correlation with the pi character. What’s going on? (This probably has something to do with the way UTF-8/16 is encoded…)
So as an example, when I read the π character ( \u03C0 ) from
Share
Oh well, if that’s all you needed… 🙂
CF80is the UTF-8 encoding for π.