We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用sublimetext3保存为utf8文件,检测失败
var fs = require('fs'); var isUtf8 = require('is-utf8');
var utf8 = fs.readFileSync('test.html');
console.log('test.html is utf8: '+isUtf8(utf8));
The text was updated successfully, but these errors were encountered:
是不是文件字节不够大。至少要有两个汉字。
Sorry, something went wrong.
抱歉,问题太久了,整理gist的时候被我删掉了,最近又遇到了一次打包demo上来
node test.js utf8.js is utf8: false
utf8-test.zip
No branches or pull requests
用sublimetext3保存为utf8文件,检测失败
var fs = require('fs');
var isUtf8 = require('is-utf8');
var utf8 = fs.readFileSync('test.html');
console.log('test.html is utf8: '+isUtf8(utf8));
The text was updated successfully, but these errors were encountered: