Java is an object-oriented programming language. It not only absorbs the various advantages of the C language, but also abandons the difficult-to-understand concepts such as multiple inheritance and pointers in C. Therefore, the Java language has two characteristics: powerful functions and simple and easy to use. .
Solution to imported java project garbled characters:
1. Right-click properties on the project, select Resource, and change Text file encoding settings (bgk Or utf-8, etc...)
2. In the IDE (Eclipse), select Window--->preferences---->General---->Workspace----find Text fileencoding Set encoding format
3. In the IDE (Eclipse), select Window--->preferences---->General---->ContentTypes-------click text (there is a symbol) --- Find the Java Source File ---- Set the appropriate encoding format (gbk or UTF-8) in Default encoding
For more java knowledge, please pay attention to java Basic Tutorial column.
The above is the detailed content of Solutions to garbled characters in imported java projects. For more information, please follow other related articles on the PHP Chinese website!