<div dir="ltr">On Windows, java.exe determines the value of "sun.jnu.encoding" and thus the encoding of any command-line arguments, environment variables, file names etc. based on the process' active code page (using the GetACP() Windows API function). On a vanilla Windows machine, this is typically a legacy code page such as Cp1252 that is not able to represent all Unicode characters. While it is possible to set the default system code page to UTF-8 in recent Windows releases, this affects all applications on the system, some of which may not be compatible with this setting. <div><br></div><div>I would like to add a way for a Java application to force this encoding to be UTF-8 without any trickery (such as sidestepping java.exe by using the native Invocation API and changing the processes active code page) or modifications to global system settings. This would require changes to libjava and the native launcher.<br></div><div><br></div><div>Are there others that would like to see such a change? Has this been thought of or attempted before?</div><div><br></div><div>Fabian</div></div>