We can achieve the default charset through the java program. In our example java program we have created an object of FileWriter and then we will be using getEncoding() method for getting the default charset of this file writer. For windows system it is by default set to the value Cp1252.
Here is the full example code of GetDefaultCharset.java as follows:
Default encoding is : Cp1252
Posted on: October 24, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles