Everyone a happy random "ഊ" in your filenames. That's UTF-16 0x0D0A which when r...

@agowa338@chaos.social

Everyone a happy random "ഊ" in your filenames.

That's UTF-16 0x0D0A which when read as UTF-8 gets interpreted as CRLF aka. a windows line break.

And when you used the UTF-8 function for trimming a string it'll break everything.

Oh and while we're on it also a happy "슜" which when read the same way will be "Â" followed by a string terminator control character.

Why I mention this? Well it just broke things. Also #KDE doesn't render them in the GUI.

#UTF8 #UTF16 #programming #development