Home > Java > JavaBase > body text

Solutions to garbled characters in imported java projects

Release: 2019-12-27 13:50:52
Original
3809 people have browsed it

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. .

Solutions to garbled characters in imported java projects

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!