RE: Plain text in Java ResourceBundle

From: Richard, Francois M (
Date: Thu Feb 22 2001 - 07:32:47 EST

I agree. Currently, ResourceBundle file are limited to US-ASCII.
My question though was related to "plain text".
I would guess than in any case, the VALUE of the message (e.g. "hello") is
plain text. As a result, this would make Java code non Unicode compliant


> -----Original Message-----
> From: Brendan Murray/DUB/Lotus []
> Sent: Thursday, February 22, 2001 5:46 AM
> To: Unicode List
> Subject: Re: Plain text in Java ResourceBundle
> "Richard, Francois M" <> wrote:
> > Question: What is plain text in this ResourceBundle file ?
> AFAIK, it's all ASCII, with characters outside the ASCII range being
> escaped to their Unicode hex values "\uXXXX". For example, if
> you want to
> set your currency, you might have (for the Euro):
> CURRENCY = "\u20AC"
> Brendan
Related to the "clear" identification of plain text:
My group is trying to convince developers to implement Unicode in their
systems. So, one of our first task is to identify "plain text" in their
systems so that we can understand the implication and requirements for
implementing Unicode.

A fairly common case is Java ResourceBundle. Java ResourceBundle files
(resource file to store and retrieve messages used in Java application) have
are very simple: a KEY / VALUE pair separated by an "=" sign. For instance,
in a resourceBundle file, you will find:

ByeMessage="See ya"
ErrorMessage="Application error"

The Java application retrieve the message using the key like in the
following Java code:
String GreetingLabel = introLabels.getString("GreetingMessage");

Question: What is plain text in this ResourceBundle file ?
The VALUE is. I am not sure about the KEY part. Actually the KEY / VALUE
pair looks like a kind of format...


This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:21:19 EDT