Skip to content

Commit

Permalink
Fix URI field encoding in createUriRecord:
Browse files Browse the repository at this point in the history
According to NFCForum URI RTD:
"3.2.3 URI Field
The encoding used MUST be UTF-8, unless the URI scheme specifies some 
particular encoding."
  • Loading branch information
neomilium committed Oct 6, 2011
1 parent aa73eac commit b30cfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libndef/ndefrecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ NDEFRecord NDEFRecord::createUriRecord(const QString& uri)
}

payload.append(uri_identifier);
payload.append(uri.right(uri_size - uri_identifier_size));
payload.append(uri.right(uri_size - uri_identifier_size).toUtf8());
record.setPayload(payload);

return record;
Expand Down

0 comments on commit b30cfd7

Please sign in to comment.