struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cristian Peraferrer <corellia...@gmail.com>
Subject Re: Aw: [s2] Using UTF-8 in .properties files
Date Thu, 09 Apr 2009 09:52:14 GMT
So, is it possible to *really* develop internationalized struts web  
apps? How can I add chinese or japanese, if the way to  
internationalize it isn't capable to use other encoding than ASCII? I  
can't understand that.

Any idea?

Thanks,
Cristian.

On 09/04/2009, at 11:39, kindlerm@arcor.de wrote:

> If you look in the Java docs, you will see this is not  
> possible. .properties files are always ASCII. The only possibility  
> to include non-ASCII characters is using the Unicode codes \uxxxx. I  
> do hate this.
>
> There might be a way to extend the resource bundle framework to  
> support files using other encodings, but I never found a ready-to- 
> use package and writing it myself was never worthwhile.
>
> Martin
>
>
> ----- Original Nachricht ----
> Von:     Cristian Peraferrer <corellian.c@gmail.com>
> An:      user@struts.apache.org
> Datum:   09.04.2009 11:28
> Betreff: [s2] Using UTF-8 in .properties files
>
>> Hi,
>>
>> How I can use UTF-8 in the .properties files? (I need the .properties
>> files for i18n, so loggically I will need characters other than the
>> contained in ASCII or latin1).
>>
>> Thanks,
>> Cristian.
>>
>> -- 
>> GPG Key-ID: 0x564903FA - Jabber ID: corellian at swissjabber.ch
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

-- 
GPG Key-ID: 0x564903FA - Jabber ID: corellian at swissjabber.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message