Author otmarhumbel
Recipients amak, jeff.allen, otmarhumbel
Date 2018-03-27.21:24:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I was playing with the jdk9+ issues on a separate branch.

If you go to and scroll down to the README you can find a table of the different encoding determination methods on some platforms.
To summarize:

 - the discouraged internal encoding() method only has an effect on windows
 - there it returns the 'old' DOS code pages
 - on all other platforms, file.encoding equals to defaultCharset()

So my conclusion was to use file.encoding on non windows, and a subprocess 'cmd /c chcp' on windows.

A possible implementation can be found in this commit:

If this sounds reasonable, I would be happy to distill this into a new issue2659 branch and create a pull request.
Date User Action Args
2018-03-27 21:24:55otmarhumbelsetmessageid: <>
2018-03-27 21:24:55otmarhumbelsetrecipients: + otmarhumbel, amak, jeff.allen
2018-03-27 21:24:55otmarhumbellinkissue2659 messages
2018-03-27 21:24:54otmarhumbelcreate