Remove diacritics/accents from string

My use-case here is pretty simple — I’m looking for a way to remove all diacritics from a given string/letter without manually making a table with all the UTF-8 replacements (which is the only method I’ve managed to find). However that’s pretty time-consuming and I’m curious what a better way of doing it could be?

I didn’t manage to find any other thread about this topic.

local string = "Héłłó" --> Hello

This is impossible without a database converting all diacritics and accents into standard UTF-8 characters. Unless you want to make an AI that can return the UTF-8 character, you will need to find/make a list.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.