Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
917 views
in Technique[技术] by (71.8m points)

请教 H5 的 File API 有没有判断所读取的文档的编码类型的办法

FileReader 对象有好几个 Api ,其中 readAsText 可以设置文档的编码,但是我仍然没有办法在读取前就知道文档的编码是什么。有什么办法能预先知道(或者去判断一下)要读取的文档的编码呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...