I am working on a project that deals with security (blockchain) and it makes use of the String.getBytes()
function. This function has undefined behavior based on which "platform default charset" is used.
Because of this and other reasons, I would like to test the program's continuous integration using every possible platform default charset.
The project supports Java version 11+.
How do I find the list of every possible platform default charset?
And how do I run Java in that charset (using any means possible) in order to run my tests?