Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

problem in windows xp: cmd utf8

remielNov 21 2010 — edited Nov 21 2010
Hello,

I have following simple program:
public class Test {
    public static void main(String[] args) {
        System.out.println("\u10d0\u044F");
    }
}
i have added dejavu sans mono to console font. I'm trying to run program in cmd.

I'm typing following commands:
chcp 65001

then
java -jar -Dfile.encoding=UTF-8 HelloWorld.jar

The result i should get is: აя
but i'm getting:
აяяяაя
აя

Can anyone help me?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2010
Added on Nov 21 2010
1 comment
209 views