Thursday, May 29, 2008

Compiling UTF-8 Encoded Files in Java

If the compiler is giving out warnings like:

"warning: unmappable character for encoding cp1252"

It is best to specify the exact encoding, as in:

javac -encoding UTF-8 JavaSourceFile.java




No comments:

Post a Comment