Thank you both for your answer. The initial issue I had was quickly solved.
I'm trying to use this knowledge for a web app as well. I have to present
a web page in a number of languages, and accept input. I might even have
to allow for (as an example) someone at an arabic configured machine to
enter their name in mandarin. I would assume I need everything in UTF-8
at that point. But how can I get those characters to appear correctly in
the terminal, file or web browser?
For latin-1, it's fine. I can see the brazilian characters in my user's
name. But will the same approach handle non-roman characters just as