<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Unicode on Tokenise</title><link>https://tokenise.rosvetic.com/tags/unicode/</link><description>Recent content in Unicode on Tokenise</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Sat, 14 Nov 2026 16:04:00 +0000</lastBuildDate><atom:link href="https://tokenise.rosvetic.com/tags/unicode/index.xml" rel="self" type="application/rss+xml"/><item><title>Your agent's truncate() cuts emoji in half: a property test that finds it and an Intl.Segmenter fix</title><link>https://tokenise.rosvetic.com/posts/truncate-by-grapheme-agent-strings-typescript/</link><pubDate>Sat, 14 Nov 2026 16:04:00 +0000</pubDate><guid>https://tokenise.rosvetic.com/posts/truncate-by-grapheme-agent-strings-typescript/</guid><description>&lt;p&gt;A notification title has to fit in 40 characters, so the ticket says &amp;ldquo;truncate with an ellipsis&amp;rdquo;. The helper that comes back is the one everybody writes first: if &lt;code&gt;text.length&lt;/code&gt; is over the limit, &lt;code&gt;slice&lt;/code&gt; and append &lt;code&gt;…&lt;/code&gt;. It passes the three examples in the ticket. Then a user with a smiley in their name gets a title that ends in a lone half of a character and a replacement glyph, or a rejected payload.&lt;/p&gt;</description></item></channel></rss>