Special Maven Filter Characters

I have a resource file with the following line, pay attention to special characters:

Questa funzionalità non è sostenuta: {0} {1}

After Maven fulfills its technological resources (which I need for something else), I get:

Questa funzionalit� non � sostenuta: {0} {1}

Please tell me, is this easy to fix?

+5
source share
1 answer

The text files that contained the strings were Java property files. By default, most Eclipse project files inherit the default encoding scheme from the container (Eclipse) - in my case, it is UTF-8. If you just add a text file to the project, it does not install it in UTF-8!

, ISO-8859-1. Eclipse, . .

, Maven UTF-8 . :

http://maven.apache.org/plugins/maven-resources-plugin/examples/encoding.html

, , UBF-8 ResourceBundle.Control, ( ) ResourceBundle - ISO-8859-1. :

http://www.mail-archive.com/stripes-users@lists.sourceforge.net/msg03972.html

, - -.

+7

All Articles