stringz icon indicating copy to clipboard operation
stringz copied to clipboard

Incorrect length for some strings

Open cinan opened this issue 5 years ago • 3 comments

length('Z͑ͫ̓ͪ̂ͫ̽͏̴̙̤̞͉͚̯̞̠͍A̴̵̜̰͔ͫ͗͢L̠ͨͧͩ͘G̴̻͈͍͔̹̑͗̎̅͛́Ǫ̵̹̻̝̳͂̌̌͘!͖̬̰̙̗̿̋ͥͥ̂ͣ̐́́͜͞') returns 27 instead of 6

cinan avatar Jun 04 '19 16:06 cinan

hahahah, so this is the charm of unicode.

cbbfcd avatar Jun 18 '19 15:06 cbbfcd

I honestly don’t know how to debug that 😂 I’m open to recommendations

sallar avatar Jun 18 '19 16:06 sallar

I found the string here https://mathiasbynens.be/notes/javascript-unicode (idk if that's some sort of help)

cinan avatar Jun 18 '19 16:06 cinan