[web-nfc] NDEFRecordInit#encoding should be only for BufferSource data source (#521)

leonhsl has just created a new issue for https://github.com/w3c/web-nfc:

== NDEFRecordInit#encoding should be only for BufferSource data source ==
https://w3c.github.io/web-nfc/#mapping-string-to-ndef needs to be refined.

If the data source is a string, we always get its `utf-8` bytes and write as the payload, i.e. `encoding` is forcibly set to "utf-8".

`NDEFRecordInit#encoding` is only used for WebDevs to declare how the `BufferSource` data is encoded.

Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/521 using your GitHub account

Received on Wednesday, 8 January 2020 08:51:52 UTC