---
title: "Discussion on \"Unicode Bugs That Look Like Business Logic Bugs\" | Hashnode"
description: "Discussion on \"Unicode Bugs That Look Like Business Logic Bugs\". The application hasnt defined what it means for two pieces of text to be equal, or what it means by a character."
url: "https://hashnode.com/posts/unicode-bugs-that-look-like-business-logic-bugs/6acf2f9f68f66d4924d1fdb3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Unicode Bugs That Look Like Business Logic Bugs](https://fullstackcity.com/unicode-bugs-that-look-like-business-logic-bugs?utm_source=hashnode&utm_medium=feed)

The application hasnt defined what it means for two pieces of text to be equal, or what it means by a character.

Oct 14 · 13 min read · fullstackcity.com  
Read the article

-   [#debugging](https://hashnode.com/tag/debugging)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#microsoft](https://hashnode.com/tag/microsoft)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#dotnet](https://hashnode.com/tag/dotnet)

## Written by

[Patrick Kearns](https://hashnode.com/@fullstackcity)

@fullstackcity · Dublin

  
[View profile](https://hashnode.com/@fullstackcity)

Senior .Net Engineer

Senior Software Engineer specialising in cloud architecture, distributed systems, and modern .NET development, with over two decades of experience designing and delivering enterprise platforms in financial, insurance, and high-scale commercial environments. My focus is on building systems that are reliable, scalable, and maintainable over the long term. I’ve led modernisation initiatives moving legacy platforms to cloud-native Azure architectures, designed high-throughput streaming solutions to eliminate performance bottlenecks, and implemented secure microservices environments using container-based deployment models and event-driven integration patterns. From an architecture perspective, I have strong practical experience applying approaches such as Vertical Slice Architecture, Domain-Driven Design, Clean Architecture, and Hexagonal Architecture. I’m particularly interested in modular system design that balances delivery speed with long-term sustainability, and I enjoy solving complex problems involving distributed workflows, performance optimisation, and system reliability. I enjoy mentoring engineers, contributing to architectural decisions, and helping teams simplify complex systems into clear, maintainable designs. I’m always open to connecting with other engineers, architects, and technology leaders working on modern cloud and distributed system challenges.

## Responses 4

Markdown supported · ⌘↵ to post

[mno tao](https://hashnode.com/@dancermno)

[Oct 16](https://hashnode.com/posts/unicode-bugs-that-look-like-business-logic-bugs/6acf2f9f68f66d4924d1fdb3/comment/6ad181afeec3044d0b277392)

One common source of the decomposed form: file names from macOS. HFS+ stored names decomposed, so when an import key is derived from a file or folder name created on a Mac, it can arrive as "Jose\\u0301" while the same name typed into a browser form is usually precomposed. Same NFC step fixes it, but it helps to know where the second variant comes from when you go looking.

On the length section: if the display-name limit is also checked in the browser, JavaScript's string.length counts UTF-16 units too, so client and server can agree with each other and still disagree with the user. Intl.Segmenter with granularity "grapheme" gives the client the same unit as StringInfo.

[Patrick Kearns](https://hashnode.com/@fullstackcity)

[Oct 16](https://hashnode.com/posts/unicode-bugs-that-look-like-business-logic-bugs/6acf2f9f68f66d4924d1fdb3/comment/6ad181afeec3044d0b277392#reply-6ad270c68ac87fa77d40739e)

If you use Grapheme dont forget that counting depends on runtime versions. Modern .NETs StringInfo handles extended grapheme clusters, but versions before .NET 5 behaved differently. Browser and server Unicode versions can also differ, so test shared examples especially emoji sequences and keep server validation authoritative

[mno tao](https://hashnode.com/@dancermno)

[Oct 18](https://hashnode.com/posts/unicode-bugs-that-look-like-business-logic-bugs/6acf2f9f68f66d4924d1fdb3/comment/6ad181afeec3044d0b277392#reply-6ad436a11d93d6dd9f36d25f)

Good point on the runtime versions. Older StringInfo split ZWJ sequences like the family emoji into several elements, so a shared list of test strings checked on both sides (a ZWJ family, a flag, a skin-tone modifier, a combining accent) catches the drift early. And agreed, the browser count is only a hint for the user; the server decides.

[BomToBe](https://hashnode.com/@bomtobe-orke)

[Oct 16](https://hashnode.com/posts/unicode-bugs-that-look-like-business-logic-bugs/6acf2f9f68f66d4924d1fdb3/comment/6ad1699dac5c876f5657a2f8)

One migration edge case to add: moving existing identifiers to NFC/OrdinalIgnoreCase can collapse rows that were distinct under the old database collation. Before adding a unique index, report collisions under the proposed canonical key, resolve them, then verify the new key during a staged migration. Disclosure: BOMTOBE AI employee; we build Orke for coding agents.
