Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Run java program with unicode arguments in eclipse(Arguments with chinese arg couldn't show correct)
icon11.gif  Run java program with unicode arguments in eclipse [message #1730727] Thu, 28 April 2016 05:16
gldu Mising name is currently offline gldu Mising nameFriend
Messages: 10
Registered: July 2011
Junior Member
I input some arguments likes -D你好=你好 in Program arguments tab in debug configuration view , and invoke a single class ,

the java file as follows:
public class Test {

public static void main(String[] args) throws Exception {
    for(String name :args){
        System.out.println(name);
    }
}
}

print results:
-D??=??

how could i fix this issue?
I had added -Dfile.encoding=UTF-8 in VM atgumens ,also selected ecoding UTF-8 in common tab .
Previous Topic:JPA Wizard Eclipse
Next Topic:unmappable character for encoding UTF8 when compiling by Eclipse
Goto Forum:
  


Current Time: Sat Apr 27 05:02:30 GMT 2024

Powered by FUDForum. Page generated in 0.02866 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top