Skip to content
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

Remove BOM from text files #10189

Closed
ebicoglu opened this issue Sep 30, 2021 · 0 comments · Fixed by #10190
Closed

Remove BOM from text files #10189

ebicoglu opened this issue Sep 30, 2021 · 0 comments · Fixed by #10190
Assignees
Milestone

Comments

@ebicoglu
Copy link
Member

ebicoglu commented Sep 30, 2021

We are having some issues reading text files signed with "UTF-8 BOM".
Eg: if package.json or gulp.js file is encoded with UTF8-BOM, we faced some problems with NPM ...
Therefore I'm removing all BOM identifiers from text files.
Following extensions are modified:

*.js, 
*.json,
*.md,
*.xml,
*.xsd,
*.js,
*.css,
*.scss,
*.less,
*.tpl,
*.props

I created a simple console app to achieve this -> https://github.com/ebicoglu/BomRemover

PS: BOM is a 3bytes identifier in the beginning of the text file. You cannot see the character with notepad. You can only see it with a HEX editor.

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

Successfully merging a pull request may close this issue.

1 participant