Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Automatically add / strip BOM #3040

Description

@vsemozhetbyt

Node does not add or strip BOM when reading or writing utf16le or utf8 files. User must do it manually in all the text IOs.

It is especially inconvenient with streams: for example, in reading huge file line by line, user must check the BOM or some variabe (alreadyStripped) for each line.

Would it be handy to entrust these actions to Node?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues requesting new Node.js features.fsIssues and PRs related to file-system APIs and the fs module.i18n-apiIssues and PRs related to Node.js internationalization support.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions