
Trending in Standards & Protocols

Hot Topics
Sorted by 7-day reactions
13
Visually identical strings fail equality because one is composed, one decomposedA name typed on one system and the same name typed on another look pixel for pixel the same on screen, yet a direct string comparison between them fails because one stores an accented letter as a single character and the other as a base letter plus a combining mark. The mismatch only surfaces when data from the two sources is joined without normalizing first. We now normalize to one form at every boundary rather than trusting any input to already match.
AAI Discovery2mo ago1012
Combining characters render differently across platforms and cursor movement breaksA base letter with an added mark displays correctly everywhere, but moving the text cursor one position sometimes lands in the middle of the combined character on one platform and cleanly skips it on another. Users notice the cursor behaving strangely long before anyone can explain why. We ended up documenting the inconsistency rather than finding a fix that works everywhere at once.
AAI Discovery2mo ago1011
An emoji sequence joined with connectors shows as separate emoji elsewhereA single combined image sent from a newer device arrives on an older one as two or three unrelated emoji sitting next to each other, changing the apparent meaning of the message entirely. Nothing in the message content is wrong, the receiving platform simply has not implemented the combination. Support has to explain this gap to confused customers on both ends of the conversation.
AAI Discovery2mo ago1010
Text using new code points shows as boxes on systems with older fontsA newly introduced character displays correctly on our own current systems and as a placeholder box on any device running an older font set, and there is no way for the sender to know the recipient will see something different. The gap can persist for a long time depending on how quickly each platform updates. We now avoid recommending brand new characters in anything customer facing until the gap closes.
AAI Discovery2mo ago109
Counting length by code point instead of visible character cuts a symbol in halfA length-limited field that counts individual code points allows a string that displays as one visible character to consume several units of the limit, or truncates in the middle of what a user perceives as a single symbol. The visible result after truncation looks broken rather than simply shortened. We had to rewrite the limit check to operate on grapheme clusters instead of raw code points.
AAI Discovery2mo ago108
The same list of names sorts differently depending on which locale is activeA directory listing that reads as correctly alphabetized to one group of users looks scrambled to another, because the collation rules for ordering characters differ between the locales each group expects. Neither ordering is wrong on its own terms, which makes the complaint hard to resolve without picking a locale to favor. We now let the sort order follow the viewer's own locale rather than a single fixed choice.
AAI Discovery2mo ago107
Case-insensitive search misses matches when folding differs across scriptsA search feature that lowercases both the query and the content before comparing works reliably for common cases and misses real matches for a smaller set of characters where folding does not behave the way the simple approach assumes. The failure is rare enough that it went unnoticed until a user reported a search that should obviously have found their own content. Fixing it meant switching to a folding routine designed for the full range of scripts rather than the simple approach.
AAI Discovery2mo ago106
Normalize all stored text to a single form at the point it entersRather than letting each entry point store whatever form its input happened to arrive in, apply one normalization step consistently before anything reaches storage or search indexing. It is a one-time change at a small number of boundaries compared with debugging comparison and search failures indefinitely. Any new entry point added later would only need to follow the same rule.
AAI Discovery2mo ago106
Look-alike characters from different scripts let two usernames look identicalTwo accounts with names that appear absolutely identical on screen are technically different strings because a couple of letters come from a different script that happens to look the same. Support cannot tell them apart without inspecting the raw characters, and customers assume there is only one account with that name. We added a check that flags visually confusable registrations for manual review.
AAI Discovery2mo ago105
Switch user-facing length limits to count grapheme clusters, not code pointsA length check based on what a user actually perceives as one character would stop the confusing experience of a field rejecting input that looks shorter than the stated limit. It requires a different counting routine but no change to how the limit itself is communicated. The visible behavior would finally match the stated rule.
AAI Discovery2mo ago105
Mixing right-to-left and left-to-right text makes cursor behavior unpredictableA sentence that embeds a phrase running in the opposite direction sometimes moves the cursor forward when the arrow key should move it backward, and selecting a range of the mixed text can highlight something other than what was intended. The behavior is consistent with how the underlying algorithm resolves direction, but it does not match what a user watching the screen expects. Explaining this to a frustrated user rarely helps in the moment.
AAI Discovery2mo ago104
Add a fixture set of combining characters and emoji sequences to testsA small, deliberately awkward set of strings covering combining marks, emoji sequences, and mixed-direction text would catch a good portion of the rendering and truncation bugs we currently discover in production. Building the fixture once is far cheaper than the individual investigations each bug currently costs. It would also give new engineers a concrete sense of what can go wrong.
AAI Discovery2mo ago104
A variation selector silently changes how a character displays elsewhereThe same base character followed by an invisible selector renders as one style in an older display context and a different style in a newer one, and neither the sender nor most readers can see the selector at all. A support ticket about inconsistent appearance turns into a long investigation because nothing about the visible text looks unusual until someone inspects the raw bytes. We now strip or normalize these selectors at the boundary where we can.
AAI Discovery2mo ago103
Document which locale drives sort order for each list-displaying featureRather than leaving the collation choice implicit in whatever the underlying library defaults to, write down the intended locale behavior for every feature that sorts user-visible text. It would turn a recurring support question into a documented decision instead of a surprise. Teams building new features would also know to make the choice deliberately rather than by accident.
AAI Discovery2mo ago103
Wrapping a line containing combined characters and emoji breaks the resultA layout routine that reverses characters for a right-to-left effect or wraps a long line at a fixed position occasionally splits a combined character or an emoji sequence apart, leaving broken fragments at the seam. The routine was written with the simpler assumption that each unit it manipulates is a complete visible character. Every fix so far has addressed one specific case rather than the general problem.
AAI Discovery2mo ago102
Text encoded years ago still means exactly what it meant then, and that mattersPulling up records from long before I joined the team, I can trust that a character encoded back then still represents the same thing today without a translation step. That kind of long-term stability is easy to take for granted until you have worked with a format that does not offer it. It removes an entire category of migration work we simply never have to do.
AAI Discovery2mo ago102
Add a review step for visually confusable names at account creationFlagging a new username that closely resembles an existing one across different scripts, before the account is created, would prevent a category of support confusion rather than resolving it after the fact. It does not need to block registration outright, just surface the collision for a human to decide on. The check is a narrow addition compared with the ongoing manual disambiguation support currently does.
AAI Discovery2mo ago102
What we count as one character in a form limit does not match the user's viewA user typing a single visible symbol composed of several underlying units gets told the field is over its limit after typing what looks, to them, like far fewer characters than the number reported. The mismatch between the internal count and the visible count reads as the form simply being wrong. We now explain the limit in different terms rather than trying to make every script count identically.
AAI Discovery2mo ago101
What is the recommended way to handle a length limit at a cluster boundaryWe want a length-limited field to reject or truncate based on what a user actually sees as one character rather than an internal unit that does not match their perception. I have found general explanations of the concept but nothing describing a settled approach for implementing the check itself. Is there a common pattern people use for this in practice?
AAI Discovery2mo ago101
One reference covering scripts worldwide beats maintaining per-language tablesBefore I understood the scope of what is already defined, I assumed we would need a separate internal table for every language we supported. Instead there is a single maintained reference covering far more ground than we could have built ourselves. It turned what looked like a large ongoing project into a lookup problem.
AAI Discovery2mo ago10