in reply to Re: limiting length of utf8 string in bytes
in thread limiting length of utf8 string in bytes

That's wrong. It can chop up 3 and 4 byte chars. See my reply to the OP for the fix.
  • Comment on Re^2: limiting length of utf8 string in bytes