The same applies to resource bundles, they are also ISO-8859-1 encoded. This
means that all non-latin characters must be escaped with Unicode escapes.
There is a separate tool, native2ascii, for it, but it would be a lot easier
to use e.g. UTF-8 editors for directly manipulating property files.

-- Ilkka

> -----Original Message-----
> From: Jon Stevens [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 03, 2001 01:44
> To: velocity-dev
> Subject: Re: [PATCH] Configuration
>
>
> on 5/2/01 10:26 AM, "Ilkka Priha" <[EMAIL PROTECTED]> wrote:
>
> > Unfortunately, the
> > java.util.Properties class has a hardcoded "8859_1" encoding in
> its load()
> > method, which makes it difficult to use property files for user
> interfaces
> > of non-latin languages.
>
> What about ResourceBundle?
>
> Ilkka, take a look at the LocalizationService in Turbine.
>
> -jon
>
> --
> If you come from a Perl or PHP background, JSP is a way to take
> your pain to new levels. --Anonymous
> <http://jakarta.apache.org/velocity/ymtd/ymtd.html>
>

Reply via email to