Skip to content

utf16le encoding is missed in the File System API doc for streams #2787

Description

@vsemozhetbyt

There is an encoding list in the Buffer API doc: ascii, utf8, utf16le / ucs2, base64, binary, hex.

However the lists in the File System API doc for streams are not complete.

fs.createReadStream:

"The encoding can be 'utf8', 'ascii', or 'base64'."

fs.createWriteStream:

"The defaultEncoding can be 'utf8', 'ascii', binary, or 'base64'."

In the both lists the "utf16le / ucs2" encoding is misguidingly missed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.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