Site code mainly usesGBKCodingFormatEclipseBy default, UTF8 encoding is turned on, so it is often necessary to convert it, or some Chinese characters will be garbled.
1. Configure WORKSPACE Encoding format: windows->preferences->general->workspace, right text file encoding, select Other, change to GBK;
2. Configuration Project Encoding format: Project->preferences->resource->text file encoding;
3. ConfigurationJavaEncoding format of the file: Windows->preferences->general->contenttypes->java Source file->utf-8 ==Update;
4. When you do the product output of RCP application, or the plug-in output, it is always error, either cannot 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.
1. Add-vmargs under Eclipse.ini "-dfile.encoding=utf-8".
2.eclipse-->window-->preferences-->general-->workspace-->text File encoding-->UTF-8
3.Installed jres-->default VM arguments:-->-dfile.encoding=utf-8
4.eclipse-->run-->run CONFIGURATIONS-->ARGUMENTS-->VM arguments-->-dfile.encoding=utf-8
5.eclipse-->run-->run Configuration-->common page--Console encoding-->others-->utf-8
==> Password!
5.eclipse-->run-->run Configuration-->common page--Console Encoding-->others-->big5
==>ok!
Reference:
http://eggboss.iteye.com/blog/639841