Version 1

    Since Java i18n files must be ISO-8859-1 you can manually convert your files from UTF-8 with the native2ascii command, or better yet use the Mojo native2ascii maven plugin by adding the following to your plugin's pom.xml file:

     

    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>native2ascii-maven-plugin</artifactId>
        <version>1.0-beta-1</version>
        <executions>
            <execution>
                <id>native2ascii-utf8-resources</id>
                <goals>
                    <goal>native2ascii</goal>
                </goals>
                <configuration>
                    <dest>target/classes</dest>
                    <src>src/main/resources</src>
                    <encoding>UTF8</encoding>
                </configuration>
            </execution>
        </executions>
    </plugin>
    

     

    Now you can keep your i18n files in maintainable UTF-8 in your source folder and this plugin will convert them to ISO-8859-1 and put them into your target folder. Your original source files will remain in UTF-8.