@joho But wouldn't transliteration be more what you are looking for?
'Cause Normalization just handles how the Unicode-Character is stored internally. So an 'Ä' should always 'look' the same, but the HEX-code might be different.
But transliteration converts from something into something else. And in your case you want to compare kind of based on ASCII if I see that correctly.
Feel free to check out https://andreas.heigl.org/2021/06/23/transliter-what/
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.