Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fix BOM header 0xFEFF problem for ucs2 encoding file #146
···if (this.lines === 0 && this.options.encoding === 'utf8' && 0xFEFF === chars.charCodeAt(0)) ···
The reason is that not only 'utf8' has BOM headers, but also some other encodings, such as 'ucs2'.