我认为Java按系统区域设置确定'file.encoding'系统属性。
但在我的系统中,系统区域设置是'ko_kr.UTF-8','file.encoding'是'ANSI_X3.4-1968'。
Java如何确定'file.encoding'系统属性?
答案 0 :(得分:1)
从以下链接填充属性的本机代码(对于solaris,Linux操作系统)
以下本机方法加载系统属性。
private static native Properties initProperties(Properties props);
以下链接是用于加载属性的本机代码链接(在第187行之后)