Transliterate German umlauts on the command line

From braindump
Jump to navigation Jump to search


Task convert a UTF-8 German umlaut into the transliterated version e.g. ö becomes oe.

$ echo 'ä ö ü' | LANG=de_DE iconv -f UTF-8 -t ASCII//TRANSLIT
ae oe ue

Of course you have to make sure the input is not say Swedish!