阅读背景:

如何在nodejs中读取以utf-16编码的文件?

来源:互联网 

I have to read a file encoded in UTF-16 using nodejs (in chunks because it is very large). The data from the file will go into a mongodb, so I will need to convert it into utf-8. From googling, it seems that this is just plain not supported by Node, and I will have to resort to converting the raw data from a buffer myself. But I also think there ought to be a better way and I'm just not finding it. Any suggestions?I have to read a file encoded in UTF-16 using n




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: