What would you propose if I said that I need to the replace polish diacritics in the string.

I was thinking of using const array of these chars
and iterating over the string (or using regexp) and replacing found diacritics with their equivalents.
for example string like this "koło" should be passed further as "kolo" which means that character on the 3 position ł should be replaced by l?

or

preparing simple QValidator but I never used that . I found it has member setLocale() which might be useful.

What would you suggest and what are your opinions about my ideas