System.out.println() writes characters to the console using "the platform's
default character encoding", according to the java documentation. This
encoding is probably ISO-8859-1 on your system. But the DOS box uses a
different encoding (probably either CP437 or CP850 on your system), which
handles the accented characters differently.

Try something like this:

OutputStreamWriter osw = new OutputStreamWriter(System.out, "CP437");

osw.write(message);

To do this you will need the "internationalized" version of the JVM. It
contains a file called "i18n.jar" that you need to have in your classpath
when you run this.

I haven't tried this myself; I noticed the problem but didn't consider it to
be important enough for me to fix. So I am not sure that it will work. The
graphical user interfaces (AWT and Swing) do not have this problem.

PC2

Cesar <ces_re@yahoo.com.mx> wrote in message
news:3a663ad6$1@news.devx.com...
>
> What happend whith ?.
> I have a program in Java that displays messages in Espaish, the
> peogram run in MS-DOS (c:\java program) but I can seen the special
> characters like .
> Can you tell me how I can print that chars.
> Thanks a lot.
>