Re: [web-nfc] What's the value of `toJSON()`? (#366)

Regarding UTF-16 in NDEF:

> The Unicode BOM (byte order mark) MUST be tolerated (ie. no error conditions).

That is what TextDecoder does, but maybe we need to detect then - if it has BOM its "utf-16".

> When writing a text record the BOM MAY be omitted, in that case the order shall be big endian ("utf-16be")


-- 
GitHub Notification of comment by kenchris
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/366#issuecomment-542536156 using your GitHub account

Received on Wednesday, 16 October 2019 06:11:30 UTC