Can somebody please give me an alternative to the following awk statement. As soon as I give a "n" for string, it skips after Umlaut. I don't want to use gsub because I have many special characters and don't want to write a script for this.
$ echo "Döll" | awk '{printf "%s\n", $0}'
Döll
$ echo "Döll" | awk '{printf "%1s\n", $0}'
D
Also if not in awk, can somebody help me in other languages?
The problem was caused by the LANG
variable being set to en_US.UTF-8
. After changing it to De_DE.88591
, it works like a charm.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With