struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Cooper <mfncoo...@gmail.com>
Subject Re: Options on UTF-8 Localizations
Date Mon, 21 Nov 2011 18:43:59 GMT
On Mon, Nov 21, 2011 at 10:20 AM, Christian Grobmeier
<grobmeier@gmail.com> wrote:
> Folks,
>
> I use the property files for localization. But well, property files
> are pretty limited as they can only do iso. I need UTF-8 urgently now,
> because I have chinese characters at hand. What are my options?

As long as you are using native2ascii, property files support CJKV.

--
Martin Cooper


> I have that:
>
> struts.i18n.encoding=UTF-8
> <constant name="struts.i18n.encoding" value="UTF-8"/>
>
> but it doesn't help. I need to use \u0000 format but of course this
> would mean my sudden death when I need to find out all the chinese
> stuff in unicode.
>
> I have never seen a xml resource bundle which would support utf-8.
>
> Any ideas? I am willing to write something myself if necessary, just
> need a starter.
> And while we are at it, why is a property file still the default and not xml?
>
> Cheers
>
>
> --
> http://www.grobmeier.de
> https://www.timeandbill.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

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


Mime
View raw message