Original: http://blog.csdn.net/chenghui0317/article/details/9417949Original works, permission to reprint, please be sure to use hyperlinks in the form of the original source of the article, the author information and my statement. Otherwise, the
1. Eclipse Settings 1.1change the background color of the highlighted string (dark gray by default)settings : Window->preferences->general->editors->text editors->annotations->occurrences1.2Common shortcut keysCommon shortcut keys in eclipse: http://
The reason that eclipse is garbled is that the encoding rules selected by the Eclipse Editor are mutable. Generally the default is UTF-8 or GBK, when a project imported from the outside, if the project is encoded in the same way as set in eclipse,
1. Modify the Eclipse Default Workspace encoding method. Click "Windows"-"preferences", pop-up window, click "General"-"workspace", so that each time you writeThe default text file encoding method is used UTF-82. Modify the project coding method.
http://my.oschina.net/zhaoqian/blog/66545Encoding settings under 1.eclipse:
when you use a template to create a new jsp,xhtml file in Eclipse , the default encoding is: Iso-8859-1. ISO-8859-1 encoding is not supported for Chinese display, if you
Reprint: http://my.oschina.net/zhaoqian/blog/66545Encoding settings under 1.eclipse:
when you use a template to create a new jsp,xhtml file in Eclipse , the default encoding is: Iso-8859-1. ISO-8859-1 encoding is not supported for Chinese
MyEclipse with its rich features to win the love of programmers, but its speed does have a problem, JSP file Open will not stop checking, even appear to die, analysis of the reason, the original is validation in doing strange. Well, if you find the
MyEclipse Import a project, there is Chinese garbled problemOne. Encode the entire project Setup UTF-8The Text file encoding in the Windows->preferences->general->workspace->text file encoding->other box is changed to UTF-8.Two. Set the Java source
First, Eclipse new workspace Set default encoding format UTF-81. Windows->preferences ... Open the Preferences dialog, navigate to the left navigation tree, navigate to General->workspace, right text file encoding, select Other, change to UTF-8, and
There are several places that need to be set up:Window->preferences->general->content type->text->jsp The bottom is set to UTF-8The text file encoding in the Properties dialog box for the newly created project is
Are you used to myeclipse? Suddenly change to eclipseee not used to?Then configure it, it is the same as the use of MyEclipse Basic.Step1:Of course, the installation of eclipseee, which is not much to say.Step2: Configure workspace default encoding
Recently, due to the need for work, a previously written Java project needs to be transferred to Linux to run. The system environment is as follows:
Ide:eclipselinux:ubuntu8.04Windows:xp
The main steps are as follows:
1 Migration Engineering
Original works, allow reprint, reprint, please be sure to hyperlink form to indicate the original source of the article, the author's information and I declare. Otherwise, legal liability will be held.
Author: Eternal の_☆ Address:
It should be the reason for the Chinese operating system, the code for Eclipse's default new project is GBK, and for the sake of coding support, the best unified requirement in the project team is UTF-8 coding for development.
modifying Eclipse
Writing web Project in MyEclipse, there are 2 places to change the encoding settings:
1.window-->preference-->general-->content type
then expand each subkey in the and enter "UTF-8" or "GB18030" in the , point
If you want to enable plug-in development applications to have better internationalization support, to maximize the support of Chinese output, it is best to make Java files using UTF-8 encoding. However, the default character encoding for the
(1) Modify the coding mode of the working space:
Window->preferences->general->workspace->text file Encoding
Select the encoding you want in the others (if you don't enter it directly), and then save it.
2. Modify the coding method of a single
Background: I use so long, because most of them are set to UTF-8, but some of the old project is actually GBK format, so the work space, usually the encoding of the file type is UTF-8.For special projects to set a specific format, in fact, I do not
Encoding settings under 1.eclipse:
When you use a template to create a new jsp,xhtml file in Eclipse, the default encoding is: Iso-8859-1. ISO-8859-1 encoding is not supported for Chinese display, if you want to support Simplified Chinese, the
set the project code of the workspace to prevent garbledWindow-preferences-general-workspaceSelect "Other"-"UTF-8" for "Text file Encoding"To change the encoding of an existing project: Right-click on the project properties and select "Text File
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.