Codepage for Win32 dosbox

Discussion in 'Java' started by Richard Ivarson, Jun 29, 2003.

  1. Some Java programs I use output text to the console with contains
    Unicodes. Inside a Unix console and other Iso-Latin capable consoles,
    everything is perfect.
    However when I run them within a Win32 dosbox
    (command.com/cmd.com/etc) those Unicode characters are being mapped to
    wrong DOS characters.

    In former times (Java 1.2 I think) I could do the following trick
    within such a Dos box:
    java -Dfile.encoding=Cp850 -jar Javapp.jar
    And the characters have been correct (it's been a dosbox with German
    Umlaut characters then).

    However, nowadays, it doesn't work anymore. The JRE issues an
    Exception that it doesn't know that codepage.

    Does anybody please know a solution? Many thanks.

    -ric
    Richard Ivarson, Jun 29, 2003
    #1
    1. Advertising

  2. Hi Mark, hi Tor,

    thanks for your helpful answers.
    Since other OS'es consoles (Unix etc) show the Unicode characters of
    my Java apps correctly I think the best solution is to isse a "chcp
    1252" in the Windows NT (4/5) dosbox before starting the Java app.
    This works perfect.
    Many thanks again!

    -ric



    Mark Thornton <> wrote in message news:<bdmbf0$u34n4$>...
    [..]
    > One solution is to change the code page used by the console:

    [..]
    Richard Ivarson, Jul 1, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike Prager

    Culture and Codepage question

    Mike Prager, Aug 30, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    1,427
    Mike Prager
    Aug 30, 2003
  2. Benny Ng
    Replies:
    0
    Views:
    360
    Benny Ng
    Jun 17, 2004
  3. Yahya Saad

    Two Codepage

    Yahya Saad, Oct 13, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    406
    Yahya Saad
    Oct 13, 2004
  4. Daatmor

    Codepage problem

    Daatmor, Jun 15, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    4,549
    Joerg Jooss
    Jun 17, 2005
  5. Mehmet Gunacti
    Replies:
    0
    Views:
    377
    Mehmet Gunacti
    Mar 1, 2005
Loading...

Share This Page