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

> How about making optional lang (default to user agent default locale) and encoding (default to utf-8) and keeping data a string for "text" recordType?

I have been thinking about the same. In the NDEF record, encoding and language code are in the first bytes of the PAYLOAD. So we can represent PAYLOAD split between `lang`, `encoding` and `data`. In that sense, I would prefer using `data`, since we will expose `lang` and `encoding` separately.

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

Received on Tuesday, 15 October 2019 15:12:32 UTC