outputting iso-8859-1 chars

Morten Poulsen morten@afdelingp.dk
Wed May 1 04:09:00 GMT 2002


On Mon, 2002-04-29 at 22:21, Tom Tromey wrote:
> If this program doesn't print ISO-8859-1 (or some alias) when
> LC_CTYPE=en_GB, then I think the problem is in your libc.  Otherwise
> maybe the problem is in libjava; you'd have to do some debugging to
> figure out what is going wrong.

Oskar Liljeblad gave me a hint about setting up locales correctly.

$ ./a.out 
ANSI_X3.4-1968
$ LC_CTYPE=en_GB ./a.out 
ISO-8859-1

$ ./hello
xxx?xxx
$ LC_CTYPE=en_GB ./hello
xxxåxxx

Thanks for the help,
Morten

-- 
Morten Poulsen <morten@afdelingp.dk>
http://www.afdelingp.dk/



More information about the Java mailing list