Skip to content

File.ReadAllText is not correct. #101

@halfsprit

Description

@halfsprit

if file is gbk encoding, and the last char is double bytes, File.ReadAllText can't get correct string.
s = File.ReadAllText("e:\aa.js", Encoding.GetEncoding("GBK"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions