<< May 9, 2004 | Home | May 11, 2004 >>

Quiz: Default Encoding of Java Source Files

Quickly, without peeking into the documentation, answer this question:

When you run javac Foo.java, what encoding does the Java compiler assumes Foo.java to be in?

Is it UTF-8? UTF-16? ISO-8859-1? ASCII with escaped Unicode? Or something else?