This question is a continuation of Java string searching ignoring accents.
The answer to the original question shows us how to remove the diacritics from strings. So, for instance, köln becomes koln. But łódź becomes łodz – note the l with stroke.
My question is how can I remove the stroke as well, so that łódź becomes lodz?
Thanks.
You cannot, at least not trivially for all such letters. The letter
łis (except for appearance and its Unicode name) not linked tolat all (in Unicode at least; linguistically that’s a different matter).Your only option might be a conversion table for your use case you can fill with all the characters you need to convert.