Skip to content

check file encoding and only support nodejs native encodings #71

@justlaputa

Description

@justlaputa

chardet supported encoding:
https://github.com/runk/node-chardet#supported-encodings

nodejs native supported encodings:
https://github.com/nodejs/node/blob/master/lib/buffer.js

when we found the input file's encoding is not in the nodejs's native supported list, we should stop processing and output error to user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions