Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java は、システム ロケールによって「file.encoding」システム プロパティを決定すると考えていました。
しかし、私のシステムでは、システム ロケールが 'ko_kr.UTF-8' であるのに対し、'file.encoding' は 'ANSI_X3.4-1968' です。
Javaは「file.encoding」システムプロパティをどのように決定しますか?
以下のリンクからプロパティを入力するネイティブ コード (solaris、Linux オペレーティング システムの場合)
システム プロパティをロードするネイティブ メソッドの下。
private static native Properties initProperties(Properties props);
以下のリンクは、プロパティをロードするためのネイティブ コード リンクです (行番号 187 の後)。
Java プロパティを設定するためのソース