Transliterate German umlauts on the command line

From braindump
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


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!