Skip to content


The java and javaw launchers accept arguments and class names containing any character that is in the character set of the current locale. You can also specify any Unicode character in the class name and arguments by using Java™ escape sequences.

To do this, use the -Xargencoding command-line option.




No parameter

You can use Unicode escape sequences in the argument list that you pass to this option. To specify a Unicode character, use escape sequences in the form \u####, where # is a hexadecimal digit (0-9, A-F). For example, to specify a class that is called HelloWorld and use Unicode encoding for both capital letters, use this command:
java -Xargencoding \u0048ello\u0057orld


Use utf8 encoding.


Use ISO8859_1 encoding.