Use cmd to debug the java syntax and encounter the following problems: (Recommended: java video tutorial)
Puppy.java:3: Error : Encoding GBK unmappable characters (0x80)
Solution:
1. Use the javac -encoding utf-8 command instead of javac when compiling, but This must be done every time you compile
2. Find the path: Control Panel - System and Security - System - Advanced System Settings - Environment Variables - System Variables. Add a new JAVA_TOOL_OPTIONS with the value "-Dfile.encoding=UTF-8".
For more java knowledge, please pay attention to the java basic tutorial column.
The above is the detailed content of Introduction to solutions to Java compilation garbled code. For more information, please follow other related articles on the PHP Chinese website!