Smarter encoding conversion in conversion/extraction
boredzo opened this issue · comments
Peter Hosey commented
There is an API to guess the encoding of a stream of bytes: https://developer.apple.com/documentation/coreservices/1571836-tecsnifftextencoding
It probably doesn't have a 100% hit rate, but (assuming it still works and hasn't been stubbed out) it might be good enough for our purposes.