http://www.rgagnon.com/howto.html
1. get default charset encoding
System.out.println(System.getProperty("file.encoding"));
System.out.println(java.nio.charset.Charset.defaultCharset().name());
2. JDK source code in Eclipse
jdk source code is in %jdk_home%/src.zip, you can set it in Eclipse -> Windows -> preferences -> Installed JRE -> Edit -> rt.jar , attach jar source.
please do not confuse JDK source code with JRE source code:
http://download.java.net/jdk6/
http://stackoverflow.com/questions/2499754/whats-wrong-with-the-java-source-code