I\'m looking for way to convert chars like āžšķūņrūķīš to azskunrukis. In other words, to replace ā with a, ž with z an
As an alternative to iconv, you could check out the Normalize functions of the intl extension (if available).
iconv