jack 🛠on Nostr: I wonder are there any emoji that can be encoded as different UTF8 depending on the ...
I wonder are there any emoji that can be encoded as different UTF8 depending on the implementations too.
I think the underlying problem is that utf8 mostly concerning about how non-ascii characters can be packed in a ascii text which is json. The encode can varies as long as the decoded can restore it correctly. Nostr can’t allow varies encode given a same character, otherwise the id will differ. 😔
Published at
2023-03-05 10:04:46Event JSON
{
"id": "9ec0f48802b7f766c8adc8a7114b9668fcd3a6c5e98ad2da3718cb7a6c6b7437",
"pubkey": "3f152ab665d1079108529ff6bf0ba48809b6788b22ab8a3d76f7a3f63bec19a0",
"created_at": 1678010686,
"kind": 1,
"tags": [
[
"e",
"17a51656c40f15c903ea28069d1f22224576e840b8fb64e803da62b5aa5be27f",
""
],
[
"e",
"f178b6ae8e0afa49ff08bb1d4cd7bb5bfeb8a3a3964c386dba1f524ca32eb581"
],
[
"p",
"ccaa58e37c99c85bc5e754028a718bd46485e5d3cb3345691ecab83c755d48cc"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
],
[
"p",
"ccaa58e37c99c85bc5e754028a718bd46485e5d3cb3345691ecab83c755d48cc"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
]
],
"content": "I wonder are there any emoji that can be encoded as different UTF8 depending on the implementations too. \n\nI think the underlying problem is that utf8 mostly concerning about how non-ascii characters can be packed in a ascii text which is json. The encode can varies as long as the decoded can restore it correctly. Nostr can’t allow varies encode given a same character, otherwise the id will differ. 😔",
"sig": "20fea6c8ade3b6685b6117b1a837aa2590b014783b05059240d7ba4a0b5958b93b296fb38dc4c197ba65afa193b71ff6dacd4c657b046aa46117999d585411f3"
}