Sun's Java compiler accepts Unicode, but it expects Latin1 characters only
in source files, with other Unicode characters encoded using \uddd
notation. They provide a tool, curiously named "native2ascii" which will
translate source from native encoding (non-Latin 1 and non-Unicode) to this
Latin 1 + escaped Unicode format.
This is according to:
http://java.sun.com/j2se/1.3/docs/tooldocs/win32/native2ascii.html
(This is the Windows version of this tool but the Solaris version is
similar). A link there will lead to a table of supported native encodings.
- David
----- Original Message -----
From: "Richard, Francois M" <Francois.M.Richard@usa.xerox.com>
To: "Unicode List" <unicode@unicode.org>
Sent: Wednesday, February 21, 2001 2:22 PM
Subject: Plain text in Java ResourceBundle
> 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:
>
> GreetingMessage="Hello"
> 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...
>
> Francois
>
This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:21:19 EDT