How to Find the Default Charset/Encoding in Java?
This is really strange… Once set, the default Charset is cached and it isn’t changed while the class is in memory. Setting the “file.encoding” property with System.setProperty(“file.encoding”, “Latin-1”); does nothing. Every time Charset.defaultCharset() is called it returns the cached charset. Here are my results: Default Charset=ISO-8859-1 file.encoding=Latin-1 Default Charset=ISO-8859-1 Default Charset in Use=ISO8859_1 I’m using … Read more