News for hackers. Stuff that matters.
Re:How fast can you validate UTF-8 strings in JavaScript? by LoganDark on Saturday January 20, 2024 @03:58PM (#39072250)
There is no such thing as "UTF-8 that is invalid for my application". Any properly encoded sequence of UTF-8 codepoints is valid UTF-8. Your application may have constraints on the codepoints that it should accept, but that does not suddenly make them improperly encoded. Using visually-similar lookalikes does not make a UTF-8 string invalid.
Re:How fast can you validate UTF-8 strings in JavaScript? by wolverine876 on Saturday January 20, 2024 @04:06PM (#39072322)
> There is no such thing as "UTF-8 that is invalid for my application".

In fact, yes there is! Your application may vary. :)

Re:How fast can you validate UTF-8 strings in JavaScript? by LoganDark on Sunday January 21, 2024 @12:18AM (#39075806)
UTF-8 doesn't vary, it's just an encoding.