> Hi all,
>
[quoted text clipped - 47 lines]
>
> Mike
Mike:
The default character set is UTF-16 which will display your 'beta'
character just fine. It won't however display on the console, at least
I know it won't on a Winblows XP system.
import java.awt.*;
import java.awt.event.*;
import java.io.*;
public class Main {
/**
* @param args
*/
public static void main(String[] args) throws
UnsupportedEncodingException {
Frame f = new Frame();
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent we) {
System.exit(0);
}
});
f.add(new Label("\u03b2"));
f.pack();
f.setVisible(true);
}
}

Signature
Knute Johnson
email s/nospam/knute/
Roedy Green - 28 Feb 2006 19:17 GMT
On Tue, 28 Feb 2006 10:24:40 -0800, Knute Johnson
<nospam@ljr-2.frazmtn.com> wrote, quoted or indirectly quoted someone
who said :
>The default character set is UTF-16 which will display your 'beta'
>character just fine. It won't however display on the console, at least
>I know it won't on a Winblows XP system.
Isn't that weird that the console remained stuck at the stage of
evolution of DOS. On my machine, it even uses the old IBM OEM char
set.
It needs an update: colour, traceback to the source line that created
it, Tee to a file, scrollback, permanent log record, encodings.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Zerex71 - 28 Feb 2006 22:03 GMT
Hi Knute,
Thanks for responding. The funny thing is, I think anyone reading this
post must think I've gone mad, because looking at my code now, the beta
displays just fine. It did not, however, when I tried posting - it
came up looking like a "careted" capital I to the power of 2.
My question then becomes:
1. Is my code at all buggy? (I maintain that it's not and that it's
perfectly legal; maybe I'm using the wrong encoding? I got it from an
online example).
2. Do I have a possible font problem?
I forgot to mention perhaps that the output is being sent to the
Eclipse debug/output console, and that's where it's not displaying
properly.
Mike
Oliver Wong - 28 Feb 2006 22:06 GMT
> Hi Knute,
>
[quoted text clipped - 12 lines]
> Eclipse debug/output console, and that's where it's not displaying
> properly.
I've never seen anyone setting the encoding on a printstream directed to
the console before. Presumably, the OS (or Eclipse in this case), will set
up the encoding the way it likes, so setting it differently might mess
things up.
- Oliver