Skip to content

Remove potential UTF Byte Order Mark #650

New issue

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

Closed
wants to merge 1 commit into from
Closed

Remove potential UTF Byte Order Mark #650

wants to merge 1 commit into from

Conversation

duncansmart
Copy link

Visual Studio tends to save text files as "UTF-8 with with signature" which includes a 0xFEFF Byte Order Mark sequence at the start which is (arguably erroneously) included in the string returned by node's fs.readFile(). This results in "ParseError: Syntax Error on line 1" in less.

Visual Studio tends to save text files as "UTF-8 with with signature" which includes a 0xFEFF Byte Order Mark sequence at the start which is (arguably erroneously) included in the string returned by node's fs.readFile(). This results in  "ParseError: Syntax Error on line 1" in less.
@lukeapage
Copy link
Member

I don't like it, but it seems to be what other node things do...

@lukeapage lukeapage closed this in 6696368 Aug 19, 2012
@lukeapage
Copy link
Member

Because of error I just copied your technique, but thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants