You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jiangshachina <ji...@gmail.com> on 2006/11/14 07:41:54 UTC

set appropriate charset for files?

Hi guys,
Some resource files(e.g. My_zh.properties) is set against ISO-8859-1
charset, which isn't compatible with Chinese characters.
I can change the charset with some tools(e.g. native2ascii), but how can I
achieve the goal with Maven plugins(e.g. maven-war-plugin)?

Additionally, when I archive project(using maven-jar-plugin or
maven-war-plugin),
at cmd console, one of output is the following,
Using default encoding to copy filtered resources.
What's default encoding?

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: http://www.nabble.com/set-appropriate-charset-for-files--tf2627629s177.html#a7332310
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: set appropriate charset for files?

Posted by jiangshachina <ji...@gmail.com>.
Dear Franz,
Thanks the hlep.

a cup of Java, cheers!
Sha Jiang


franz see wrote:
> 
> Good day to you, Sha Jiang,
> 
> Resource handling (copying and filtering) is by default handled by the
> maven-resources-plugin. To change the default charset (what it is depends
> on the JVM running  your maven), you can specify the encoding in your
> maven-resources-plugin configuration ( see [1] )
> 
> Cheers,
> Franz
> 
> [1]
> http://maven.apache.org/plugins/maven-resources-plugin/examples/encoding.html
> 
> jiangshachina wrote:
>> 
>> Hi guys,
>> Some resource files(e.g. My_zh.properties) is set against ISO-8859-1
>> charset, which isn't compatible with Chinese characters.
>> I can change the charset with some tools(e.g. native2ascii), but how can
>> I achieve the goal with Maven plugins(e.g. maven-war-plugin)?
>> 
>> Additionally, when I archive project(using maven-jar-plugin or
>> maven-war-plugin),
>> at cmd console, one of output is the following,
>> Using default encoding to copy filtered resources.
>> What's default encoding?
>> 
>> a cup of Java, cheers!
>> Sha Jiang
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/set-appropriate-charset-for-files--tf2627629s177.html#a7373492
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: set appropriate charset for files?

Posted by franz see <fr...@gmail.com>.
Good day to you, Sha Jiang,

Resource handling (copying and filtering) is by default handled by the
maven-resources-plugin. To change the default charset (what it is depends on
the JVM running  your maven), you can specify the encoding in your
maven-resources-plugin configuration ( see [1] )

Cheers,
Franz

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

jiangshachina wrote:
> 
> Hi guys,
> Some resource files(e.g. My_zh.properties) is set against ISO-8859-1
> charset, which isn't compatible with Chinese characters.
> I can change the charset with some tools(e.g. native2ascii), but how can I
> achieve the goal with Maven plugins(e.g. maven-war-plugin)?
> 
> Additionally, when I archive project(using maven-jar-plugin or
> maven-war-plugin),
> at cmd console, one of output is the following,
> Using default encoding to copy filtered resources.
> What's default encoding?
> 
> a cup of Java, cheers!
> Sha Jiang
> 

-- 
View this message in context: http://www.nabble.com/set-appropriate-charset-for-files--tf2627629s177.html#a7373391
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org