Closed andrewki-msft closed 4 years ago
I'm tryng to add @ericc1103 to who it is assigned to and somehow it autocompleted to 04diiguyi? wth github?
from an ancient archive of nodejs 0.x:
https://github.com/nodejs/node-v0.x-archive/issues/1918
it looks like the fix is to just strip it out after reading from the file:
body = body.replace(/^\uFEFF/, '');
The JSON validation test fails if Byte-Order Mark (BOM) is present in the file and throws an ambiguous error. The validation test should be updated to warn the user to take corrective action to remove BOM. It is recommended that BOM should not be used in UTF-8.
https://tools.ietf.org/html/rfc3629#page-6
Steps to reproduce:
jsonValidationTest.js
Fix diff for the workbook to remove the BOM: