Hello all, I am using AIX 7.1 and whenever xml files with accented French characters are read, for example Name Andree where the first e has accented mark on top, AIX should it as Andr�e but it comes as funny number characters for the first e. What do I need to fix this. I want to test with one ftpuser such as itftp by making changes on its profile and read the file before making global change on /etc/environments. Please help me fixing this. I have tried to change the language to en_US.UTF-8 and it still reads funny.
I have
LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8 on .profile for itftp user.
It uses a French locale for the definition of characters that are to be considered valid when looking at strings, character classes, etc. Setting LC_ALL to any value overrides any values assigned to LANG and all of the other LC_* locale setting environment variables (which is why the first step in my suggestion was to undefine LC_ALL).
But, of course, I don't have an AIX system to test and I just guessed at the name of a French locale based on a guess at the naming convention used on your system based on the name of your English UTF-8 locale.
I'm confused by what you have shown us.
Setting these locale environment variables in the .profile file of the user itftp will not affect the output you see when you run commands in your shell when you are logged in as you. Try running the following commands in your shell, and tell us what happens:
(Note that the parentheses put all of these commands in a subshell environment. The locale environment variables outside of this subshell will not be affected. So, if it doesn't work, you haven't modified your current shell execution environment.
If it does work, you can decide whether you want to make make the changes I suggested to your .profile file, log out, and login again so all future commands you run will be using these locale settings or if you want to type in these commands only when you run certain commands (like this grep ) in the future.