Skip to content

Detection fails when file is saved as UTF-8 with BOM #3314

Closed

Description

@milnak

Windows with bat 0.25.0 (25f4f96)

create this file and save as "test.csproj" (yes, csproj) with UTF-8 encoding:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
</Project>

bat test.csproj will display as XML.

now resave it with "UTF-8 with BOM" encoding.

bat test.csproj will display as plain text.

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

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions