The following error occurred while applying the template:
Save cocould not be completed. reason: some characters cannot be mapped using "ISO-8859-1" character encoding. either change the encoding or remove the characters which are not supported by the "ISO-8859-1" character encoding. it seems that this error occurs when saving after adding Chinese characters!
The following are my personal solutions for your reference:
1. eclipse --> window --> preferences --> General --> content types --> test --> click Java properties file. 'default edcodng: 'appears at the bottom, which is changed to UTF-8 or GBK, then update. although it can be saved, native2ascii must be used for conversion. Otherwise, the output is garbled.
2. The Jinto plug-in of eclipse should be used for editing. The native2ascii code of Java will be called automatically to transcode the file. Jinto plug-in download: http://www.guh-software.de/jinto.html attachment: install the properties editor in eclipse. In eclipse, "help" --- "Software Update" -- "find and install" -- "search for new feature components to be installed" --- "Next" --- "create remote site ""--- enter" name ": properties editor;
The URL is: http://propedit.sourceforge.jp/eclipse/updates/ point done, let it download plug-in by itself... find the appropriate properties editor installation, this plug-in is reduced to UTF-8 format, automatically converted in struts.
In this way, the Eclipse plug-in can be installed by yourself.