<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
On 13/10/2022 17:22, Amn wrote:<br>
<blockquote type="cite" cite="mid:0cc4a85e-720e-8e7c-5b08-4dcbdb372b28@gmail.com">
<p>The following code:<br>
<b>System.getProperty("file.encoding.pkg");</b><br>
in my Debian 11 box using Java 17 reports "null", I was
expecting something like UTF-x.<br>
I did a search on the net in the hope to find some explanation
regarding the behaviour of the above code, but to no avail. Can
anyone help me understand the behaviour of the above method
call?<br>
</p>
</blockquote>
I suspect you are looking for file.encoding rather than
file.encoding.pkg. I think the undocumented system property
file.encoding.pkg dates from the sun.io converters where its value
was "sun.io" rather then a charset name. All of this has been
obsolete since JDK 1.4 (2004) so I suspect it's just a typo in the
name of the system property. If there are issues in this area then
it's best to follow-up on core-libs-dev, not here.<br>
<br>
-Alan<br>
</body>
</html>