Mark's Tech Stuff
Programming solutions, source code, solutions to tech problems and other tech related stuff.
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
Share to Twitter
Share to Facebook
Share to Pinterest
Post a Comment
Post Comments (Atom)