i. celeste aurora :v_tg: :v_nb: :v_genderfluid: [witchzard 2.0] on Nostr: TIL that some Unicode-implementations have a "bug" (peculiarity) with one specific ...
TIL that some Unicode-implementations have a "bug" (peculiarity) with one specific Turkish character. The character in question is LATIN CAPITAL LETTER I WITH DOT ABOVE.
There are two special characters in Turkish alphabet:
ı - LATIN SMALL LETTER DOTLESS I
İ - LATIN CAPITAL LETTER I WITH DOT ABOVE
When you convert the lower-case character to its uppercase version, it HAS TO BECOME your usual I: LATIN CAPITAL LETTER I
And when you convert the upper-case character to its lower-case version, it HAS TO BECOME your usual i: LATIN SMALL LETTER I
But Javascript (and macOS in general, just so that you know it ain't a JS-issue) converts the İ to i̇ + DOT ABOVE, i.e. it converts it to a composed character consisting of two unicode code-points, which is wrong, because the first code-point s already correct.
Published at
2025-03-25 11:16:54 UTCEvent JSON
{
"id": "fa2b3a849ae2f719ae7e6762ad40cd954f05b670c0998fabae42d8acfb82a26a",
"pubkey": "fb9913824ba93417676373d79edbde1cb10eaa0b6a61fd114c125561ffed40a9",
"created_at": 1742901414,
"kind": 1,
"tags": [
[
"imeta",
"url https://tau-ceti.space/system/media_attachments/files/114/222/775/727/244/839/original/868a5d1dffa3abbc.png",
"m image/png",
"dim 2127x975",
"blurhash U8SigQR%D%IB0KNFV[M{bvoft7t7NGbFf6%2"
],
[
"proxy",
"https://tau-ceti.space/users/ics/statuses/114222787105339873",
"activitypub"
]
],
"content": "TIL that some Unicode-implementations have a \"bug\" (peculiarity) with one specific Turkish character. The character in question is LATIN CAPITAL LETTER I WITH DOT ABOVE.\n\nThere are two special characters in Turkish alphabet:\n\nı - LATIN SMALL LETTER DOTLESS I\nİ - LATIN CAPITAL LETTER I WITH DOT ABOVE\n\nWhen you convert the lower-case character to its uppercase version, it HAS TO BECOME your usual I: LATIN CAPITAL LETTER I\nAnd when you convert the upper-case character to its lower-case version, it HAS TO BECOME your usual i: LATIN SMALL LETTER I\n\nBut Javascript (and macOS in general, just so that you know it ain't a JS-issue) converts the İ to i̇ + DOT ABOVE, i.e. it converts it to a composed character consisting of two unicode code-points, which is wrong, because the first code-point s already correct.\n\nhttps://tau-ceti.space/system/media_attachments/files/114/222/775/727/244/839/original/868a5d1dffa3abbc.png",
"sig": "3b6d9ae74516a0f739c23f2e03f0b5cddf4219b0eab0081823babc5ee2090c6c9b84342aebdbf15c5d3a13b95a6f7ebcfabd2c4c35ae77490696759672cfc28b"
}