I'm running a Java program from command line in Ubuntu, and trying to print accented characters onto the console. But the characters get displayed as ?
on the console. How do I make the shell display accented characters that are output from the program?
Asked
Active
Viewed 457 times
0

Raj
- 4,342
- 9
- 40
- 45
1 Answers
1
Set the LANG environment variable in your shell:
LANG=en_EN.utf-8
See also the ubunutu docs on environment variables.

stacker
- 68,052
- 28
- 140
- 210
-
Still the character gets printed as ? – Raj May 06 '13 at 09:50