Skip to content

Remove potential UTF Byte Order Mark - #650

Closed
duncansmart wants to merge 1 commit into
less:masterfrom
duncansmart:patch-1
Closed

duncansmart wants to merge 1 commit into
less:masterfrom
duncansmart:patch-1

Conversation

@duncansmart

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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