outputting iso-8859-1 chars

Oskar Liljeblad oskar@osk.mine.nu
Thu Apr 25 03:49:00 GMT 2002


On Thursday, April 25, 2002 at 10:08, Morten Poulsen wrote:
> 
> > On Linux the Sun JVM assumes that the C locale uses ISO-8859-1, when
> > in fact it uses ASCII.  libgcj respects this difference and outputs
> > just ASCII, meaning that character > 0x7f is printed as `?'.
> 
> When I set my locale to da it still outouts a '?'.

$ LC_CTYPE=C ./a.out 
xxx?xxx
$ LC_CTYPE=en_GB ./a.out 
xxxåxxx

Setting locale here fixes it...

Oskar Liljeblad (oskar@osk.mine.nu)



More information about the Java mailing list