2 ms·
If you carefully manipulate the array to produce some different array, and then convert back to string/text, you can preserve the grapheme clusters just fine.
by kazinator 4y ago
If you carefully manipulate the array to produce some different array, and then convert back to string/text, you can preserve the grapheme clusters just fine.
Just like the way string manipulating routines that don't know anything about Unicode can work with UTF-8 without breaking the text, simply by not truncating or separating the data in the middle of a UTF-8 sequence.