You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"If bit 7 if set, means the payload is encoded in UTF-8, otherwise in UTF-16."
Is this correct? If I set bit 7 and followed by (single byte) Latin letters I get Chinese characters read by my phone (and TagInfo). If I reset bit 7 it reads as Latin characters.
The text was updated successfully, but these errors were encountered:
// According to NFCForum-TS-RTD_Text_1.0 specification, section 3.2.1 Syntax.// First byte of the payload is status byte, defined in Table 3: Status Byte Encodings.// 0-5: lang code length// 6 : must be zero// 7 : 0 - text is in UTF-8 encoding, 1 - text is in UTF-16 encoding.nfcRecord.encoding = (text[0] & (1 << 7)) == 0 ? ENCODING_UTF8 : ENCODING_UTF16;
In https://w3c.github.io/web-nfc/#text-record
Regarding the status byte, it says
"If bit 7 if set, means the payload is encoded in UTF-8, otherwise in UTF-16."
Is this correct? If I set bit 7 and followed by (single byte) Latin letters I get Chinese characters read by my phone (and TagInfo). If I reset bit 7 it reads as Latin characters.
The text was updated successfully, but these errors were encountered: