Using AWK
I have wrote an AWK script and tested it using an English text file, as that is my native language.
However, I live and work in Germany and need to run the script on a German text file. The output is OK except where the word contains an umlaut (ö, ä or ü) and ß, which are replaced with question marks.
When I run the env command, the LANG variable is not set.
My first question is, if I set the LANG variable for Germany, will this force AWK to use German letters? If so, does anyone know what the value is for Germany?
The second question is, if setting the LANG variable is not the answer, what is?
Thanks in advance.
Alexei
However, I live and work in Germany and need to run the script on a German text file. The output is OK except where the word contains an umlaut (ö, ä or ü) and ß, which are replaced with question marks.

When I run the env command, the LANG variable is not set.
My first question is, if I set the LANG variable for Germany, will this force AWK to use German letters? If so, does anyone know what the value is for Germany?
The second question is, if setting the LANG variable is not the answer, what is?
Thanks in advance.
Alexei
Comments
not sure about your first question, but I can help with the LANG value for Germany:
LANG=de_DE.UTF-8
My first question is, if I set the LANG variable for Germany, will this force AWK to use German letters? If so, does anyone know what the value is for Germany?
Best,
durandal
I included this in my script, but it still did not work.
Then I found out what the problem was.
It does not work if I output to screen. This I can live with.
However, if I redirect the output to a file, the characters are there.
cheers
Alexei