There was a PR flying around about string length and if × 2 was right or not. But with Unicode the string length might not be the same as the codePointCount... so if want want to count what to put on the wire using code points might be correct.
Gary
There was a PR flying around about string length and if × 2 was right or not. But with Unicode the string length might not be the same as the codePointCount... so if want want to count what to put on the wire using code points might be correct.
Gary