Thomas Scheffler wrote:
>
> If your .properties files should be read by the java.util.Properties class
> please keep in mind that they HAVE to be encoded in "ISO 8859-1" a.k.a.
> "latin1".
>
Currently my native2ascii goal is configured:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native2ascii-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>native2ascii</goal>
</goals>
<!-- specific configurations -->
<configuration>
<encoding>UTF8</encoding>
<src>${basedir}/resources</src>
<dest>target/classes</dest>
<includes>**/*.properties</includes>
</configuration>
</execution>
</executions>
</plugin>
Does this mean I need to break away from UTF8 and set the encoding value to
something else? Am I just missing the point?
Thomas Scheffler wrote:
>
> Am Montag, 20. Juli 2009 19:43:14 schrieb daniel.green:
>> Upon the packaging of my war, I want to convert all .properties files to
>> utf8. Can I do this with straight maven or will I need to run an ant task
>> OR write my own plugin?
>
> If your .properties files should be read by the java.util.Properties class
> please keep in mind that they HAVE to be encoded in "ISO 8859-1" a.k.a.
> "latin1".
>
> see http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html
>
> "The load and store methods load and store properties in a simple line-
> oriented format specified below. This format uses the ISO 8859-1 character
> encoding. Characters that cannot be directly represented in this encoding
> can
> be written using Unicode escapes ; only a single 'u' character is allowed
> in
> an escape sequence. The native2ascii tool can be used to convert property
> files
> to and from other character encodings."
>
> regards
>
> Thomas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://www.nabble.com/Converting-.properties-to-UTF8-tp24574361p24576009.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]