Raj
Raj

Reputation: 4462

Printing accented characters from a Java program onto a linux shell

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?

Upvotes: 0

Views: 468

Answers (1)

stacker
stacker

Reputation: 68982

Set the LANG environment variable in your shell:

LANG=en_EN.utf-8

See also the ubunutu docs on environment variables.

Upvotes: 1

Related Questions