Thursday, 12 June 2014

Find Default Char set in Java

import java.nio.charset.Charset;

class DefaultCharSet{
 public static void main(String args[]){
  System.out.println("Default Charset=" + Charset.defaultCharset());
 }
}

Output
Default Charset=windows-1252


                                                             Home

No comments:

Post a Comment