You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christian Senk <da...@gmx.de> on 2009/05/18 23:02:17 UTC
Message catalog encoding
Hi,
it seems that i have a serious problem with the message catalog encoding.
the default eclipse encoding creating new and saving *.properties files
seems to be ISO-8859-1. Also if the encoding was UTF-8. eclipse change it
to ISO-8859-1.
i have two message catalogs "Login.properties" and "Login_de.properties".
Some strings in *_de should override values of the default properties file.
But this work only in ISO mode, not in UTF-8. The weird thing is that
the overriding
do not work only for automatic obtained values e.g. for labels.
I need some Characters like ü, ä, ö and so on. But this works only for
UTF-8 encoded
catalogs because the page encoding is UTF-8. But if i encode them in
UTF-8 it seems
the automatic obtained values doesn't work anymore.
Any ideas? ^.^
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Message catalog encoding
Posted by Andreas Andreou <an...@di.uoa.gr>.
There's also an eclipse plugin that help with .properties (and does
the convertions)
- can't quite remember the name though...
On Tue, May 19, 2009 at 3:28 PM, Borut Bolčina <bo...@gmail.com> wrote:
> Eclipse does not convert your properties file to utf-8 when you select utf-8
> encoding in properties of the file. Use Notepad++ (for example) for
> converting files between various encodings.
>
> I configured the eclipse to open my utf'8 encoded property files in
> notepad++ instead of build in editor. Also make sure your properties file is
> utf-8 without BOM (Byte Order Mark). See
> https://issues.apache.org/jira/browse/TAP5-409
>
> -Borut
>
> 2009/5/18 Christian Senk <da...@gmx.de>
>
>> Hi,
>>
>> it seems that i have a serious problem with the message catalog encoding.
>> the default eclipse encoding creating new and saving *.properties files
>> seems to be ISO-8859-1. Also if the encoding was UTF-8. eclipse change it
>> to ISO-8859-1.
>>
>> i have two message catalogs "Login.properties" and "Login_de.properties".
>> Some strings in *_de should override values of the default properties file.
>> But this work only in ISO mode, not in UTF-8. The weird thing is that the
>> overriding
>> do not work only for automatic obtained values e.g. for labels.
>>
>> I need some Characters like ü, ä, ö and so on. But this works only for
>> UTF-8 encoded
>> catalogs because the page encoding is UTF-8. But if i encode them in UTF-8
>> it seems
>> the automatic obtained values doesn't work anymore.
>>
>> Any ideas? ^.^
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
--
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Message catalog encoding
Posted by Borut Bolčina <bo...@gmail.com>.
Eclipse does not convert your properties file to utf-8 when you select utf-8
encoding in properties of the file. Use Notepad++ (for example) for
converting files between various encodings.
I configured the eclipse to open my utf'8 encoded property files in
notepad++ instead of build in editor. Also make sure your properties file is
utf-8 without BOM (Byte Order Mark). See
https://issues.apache.org/jira/browse/TAP5-409
-Borut
2009/5/18 Christian Senk <da...@gmx.de>
> Hi,
>
> it seems that i have a serious problem with the message catalog encoding.
> the default eclipse encoding creating new and saving *.properties files
> seems to be ISO-8859-1. Also if the encoding was UTF-8. eclipse change it
> to ISO-8859-1.
>
> i have two message catalogs "Login.properties" and "Login_de.properties".
> Some strings in *_de should override values of the default properties file.
> But this work only in ISO mode, not in UTF-8. The weird thing is that the
> overriding
> do not work only for automatic obtained values e.g. for labels.
>
> I need some Characters like ü, ä, ö and so on. But this works only for
> UTF-8 encoded
> catalogs because the page encoding is UTF-8. But if i encode them in UTF-8
> it seems
> the automatic obtained values doesn't work anymore.
>
> Any ideas? ^.^
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Message catalog encoding
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Mon, May 18, 2009 at 6:02 PM, Christian Senk <da...@gmx.de> wrote:
> Hi,
Hi!
> it seems that i have a serious problem with the message catalog encoding.
> the default eclipse encoding creating new and saving *.properties files
> seems to be ISO-8859-1. Also if the encoding was UTF-8. eclipse change it
> to ISO-8859-1.
You can configure Eclipse to edit your property files in UTF-8. In
Package Explorer, right-click your file, Properties, Resource tab,
Text file encoding setting.
> i have two message catalogs "Login.properties" and "Login_de.properties".
> Some strings in *_de should override values of the default properties file.
> But this work only in ISO mode, not in UTF-8. The weird thing is that the
> overriding do not work only for automatic obtained values e.g. for labels.
Do you have non-US-ASCII characters in your message keys?
--
Thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org