From Dev.to
Build a UTF-8 Note Preview Without Cutting Through a Code Point
An order note fits a character-count limit but exceeds a downstream byte budget. Cutting its encoded bytes at an arbitrary position can split a multibyte sequence. For a Shopify 3PL review screen, bui...
