DEV Community

Discussion on: JS File upload: Detect Encoding

Collapse
 
guillim profile image
Guillim

the answer probably is FileReader.readAsBinaryString() used with some library like jschardet.

More info on this blogpost