Skip to content

Conversion from bytes to characters is erroneous for source files containing a byte-order mark (BOM) #329

Description

@Occams

Image

  • An existing BOM must be skipped (offset): System.Length(Encoding.GetPreamble())
  • Actual count of bytes to read must be adjusted: Size - System.Length(Encoding.GetPreamble()

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions