as a in XI ' an PKU Jade Bird si Pratt campus. Java teacher, this is my teaching summed up some of the knowledge, I hope to share with you, for more people to learn, today I will come and share with you: MyEclipse Global encoding format settings .
1. 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 later create a new project in its Properties dialog box, text file Encoding is the UTF-8.
2. Windows->preferences ... Open the Preferences dialog box, navigate to the left navigation tree, navigate to general->content Types, right context Types tree, point to each subkey in text, and enter "UTF-8" in, point update!
other Java application development related files such as: properties, XML, etc. have been specified by the Eclipse default, respectively, Iso8859-1,utf-8, such as the development of the need to change the encoding format can be specified here.
3, Window-->preference-->myeclipse-->files and Editors, change the "Encoding" of each subkey to "ISO 10645/unicode (UTF-8)", Point apply!
4, after the above three steps, the new Java The file is UTF-8 encoding, Eclipse compile, run, Debug no problem, but do the RCP application of product output, or plug-in output, always error, or can not compile through (the output to re-compile), or the output of the plug-in runtime Chinese display garbled. At this time need to re-rcp application, or plug-in plugin project Build.properties add a line, javacdefaultencoding. = UTF-8. Let the output compile when you know the Java source file UTF-8 encoded. This setting needs to ensure that all java source files are UTF-8 encoded, and if not all, refer to the Eclipse Help (Plug-in development environment Guide > Reference > Feature and Plug-in Build configuration), it is recommended that all Java source files are UTF-8 encoded.
This article is from the "Beida Bluebird Java School District" blog, please be sure to keep this source http://9158328.blog.51cto.com/9148328/1437352