简体   繁体   English

Java如何确定'file.encoding'系统属性?

[英]How does Java determine 'file.encoding' system property?

I thought Java determines 'file.encoding' system property by system locale. 我认为Java按系统区域设置确定'file.encoding'系统属性。

But in my system while system locale is 'ko_kr.UTF-8', 'file.encoding' is 'ANSI_X3.4-1968'. 但在我的系统中,系统区域设置为'ko_kr.UTF-8'时,'file.encoding'为'ANSI_X3.4-1968'。

How does Java determine 'file.encoding' system property? Java如何确定'file.encoding'系统属性?

Native code populating properties from the below link(for solaris,Linux operating system ) 本机代码从以下链接填充属性(对于solaris,Linux操作系统)

Below native method loading system properties. 以下本机方法加载系统属性。

private static native Properties initProperties(Properties props);

Below link is the native code link for loading properties( after line number 187) 以下链接是用于加载属性的本机代码链接(在行号187之后)

Source for setting java properties 用于设置java属性的源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 gradle 如何决定 file.encoding JVM 系统属性? - How does gradle decide the file.encoding JVM system property? 始终在Java中设置file.encoding系统属性是一个好主意吗? - Is it a good idea to always set file.encoding system property in Java? Java中的file.encoding系统属性在JVM的不同实例中给出不同的结果 - file.encoding system property in Java giving different results in different instances of JVM Spring Boot WIndows 10 系统属性'file.encoding' - Spring Boot WIndows 10 System property 'file.encoding' System.setProperty无法在Java中用于file.encoding - System.setProperty not working for file.encoding in Java Java RSACipher 结果受 file.encoding 属性影响 - Java RSACipher result affected by file.encoding property E / System:忽略尝试将属性“ file.encoding”设置为值“ ISO-8859-1” - E/System: Ignoring attempt to set property “file.encoding” to value “ISO-8859-1” 使用java opts将file.encoding设置为无效字符集 - Setting file.encoding to invalid charset using java opts 如何指定与基础Windows代码页一致的Java file.encoding值? - How do you specify a Java file.encoding value consistent with the underlying Windows code page? java.util.PropertyPermission file.encoding读取已签名的applet - java.util.PropertyPermission file.encoding read for signed applet
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM