Re:Smuggling arbitrary data through an emoji
by Rendello on Thursday February 13, 2025 @07:39PM
(#43043296)
A few months ago I made a post which I (should've) named "Unicode codepoints that expand or contract when case is changed in UTF-8". A decent parser shouldn't have any issues with things like this, but software that makes bad Unicode assumptions might.
Re:Smuggling arbitrary data through an emoji
by dotancohen on Friday February 14, 2025 @06:13PM
(#43054088)
Does Zalgo even work on HN? I've never thought of using it to test my systems, thank you. I've got some new testing to do tonight.
Edit: No, Zalgo doesn't work on HN. This comment itself was an experiment to try.
unescape(encodeURIComponent("รง")).length is the quick and dirty way to do a JS byte length check. The \r\n thing can be done just by cleaning up the string before length counting.