sdk: dotnet muxer reports JSON syntax error when global.json is saved in UTF8+BOM

Steps to reproduce

  1. Save global.json in utf8 with byte order mark.
  2. dotnet build

Expected behavior

dotnet build shows no errors

Actual behavior

A JSON parsing exception occurred: * Line 1, Column 2 Syntax error: Malformed token

Environment data

dotnet --version output:

A JSON parsing exception occurred: * Line 1, Column 2 Syntax error: Malformed token
1.0.0-beta-002171

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 28 (26 by maintainers)

Commits related to this issue

Most upvoted comments

This can be looked into fixing for future update - UTF8 is what we support (or lack of BOM). This can be called out in Release notes.

For UTF16 issue fix in a future update, please file a new issue and assign to @schellap