There are so many (literal) edge cases that can mangle utf-8 with making copytext count bytes.
If the first byte of copytext is in the middle of a UTF-8 character, or if there's a UTF-8 character at the end, it's gonna get mangled. ascii2text(text2ascii(stuff))) can't solve everything here.
The fact that text is no longer 1:1 is going to screw a LOT of things up, and is less sane. I understand that counting bytes is faster, but sometimes you need to count characters, too. And I doubt parsing every single bit of text with regexes is the best solution for this.
Oct 29 2019, 2:57 am