Actually, the Locale class is built into the Java language.
Perhaps my previous message was unclear, but the tutorial you are looking
for is called "Internationalization" and is located
I'm curious about what it is that you're looking for, in terms of "classes
on Unicode". Most people who ask about it mean "How can I display foreign
(sic) language characters in my program?"
Java, as I'm sure you're aware, uses a form of Unicode as its internal
character set for Strings and characters. As a result, a variety of
functions are "Unicode aware": for example, the Collator class has methods
for "normalizing" strings in order to get a better sorting, which is based
on the appropriate UTR (#15, if I remember correctly... I should look
these things up).
But you really cannot separate "Unicode support" in Java from "Locale
support" and support for internationalization (features such as
ResourceBundles for storing your externalized strings or the DateFormat
class which lets you see appropriates formatted dates). You should make
yourself familiar with these concepts first.
The Unicode website has a lot of information specific to the Unicode
Standard which will help you understand why Java is the way that it
is. You will probably want to purchase your own copy of the Unicode
Standard 3.0 if you really get into this stuff.
If you are trying to do languages based on Devanagari or other Indic
languages, support is skimpy in Java at this time. Support for Thai is
Some of the classes are incomplete or do not have in-built implementations
for all cases that you will need. For example, the Calendar class doesn't
have in-built support for non-Western calendars (like you'll find in
the Arabic speaking world, Thailand, Japan, and so on) and the
BreakIterator class really only handles text with spaces in it well.
These kinds of things are being addressed in future JDKs, I'm told.
I hope this helps. My website is new, so it's pretty skimpy on all of
these topics (no doubt you saw the "under construction" banners). However,
the Locale demo page is evolving pretty well (even today it's changed for
the better), and soon it will include code snippets and links to Java
documentation... and, if I have time over the weekend, I might even demo
some of IBM's nifty classes from AlphaWorks.
I hope this helps.
Addison P. Phillips Principal Consultant
Inter-Locale LLC http://www.inter-locale.com
Los Gatos, CA, USA mailto:firstname.lastname@example.org
+1 408.210.3569 (mobile) +1 408.904.4762 (fax)
Globalization Engineering & Consulting Services
On Tue, 1 Aug 2000, Vinit Bhatt wrote:
> Hi Addison,
> Thanks for the information.
> I tried to look on your website to get more info. on Locale.
> Is it a translator that you are developing ?
> I looked under www.javasoft.com , under tutorial link and could not find any
> Unicode tutorial. Can you please guide me through a specific URL on
> javasoft where
> i can find the example classes templates on Unicode ? That will really help
> coding my efforts. thanks a lot.
> Thanks and regards,
> Vinit Bhatt
> > -----Original Message-----
> > From: email@example.com [mailto:firstname.lastname@example.org]
> > Sent: Tuesday, August 01, 2000 1:16 PM
> > To: Unicode List
> > Cc: Unicode List
> > Subject: Re: Question
> > Well....
> > A list of languages supported by Unicode is fairly long (and a complex
> > topic).
> > The Java programming language has varying levels of support for a variety
> > of languages. This support is evolving, even as I write.
> > For example:
> > There is no (built-in) support for calendars other than the Gregorian
> > calendar (although you can make your own and there are several available
> > from IBM).
> > The Sun JDK comes with a variety of locales (144 at my
> > last count) pre-installed. Check out my Java Locale Viewer at:
> This demo shows many of the basic classes related to the Locale object in
> use. I'm adding collation, normalization, the BreakIterator, and other
> features sometime this week.
> Before you start with books, check out the Javasoft website. They have a
> comprehensive Internationalization tutorial and several articles on the
> basic classes you'll need to understand.
> Many books on Java have a chapter on internationalization, which is where
> you'll mostly find reference to such matters as Unicode. There are also a
> couple of books coming out shortly on the topic.
> Addison P. Phillips Principal Consultant
> Inter-Locale LLC http://www.inter-locale.com
> Los Gatos, CA, USA mailto:email@example.com
> +1 408.210.3569 (mobile) +1 408.904.4762 (fax)
> Globalization Engineering & Consulting Services
> On Tue, 1 Aug 2000, Vinit Bhatt wrote:
> > How do i get list of languages which are supported by Unicode in Java ?
> > Also, what books you recommend to develop program in Java - Unicode ?
> > Thanks and regards,
> > Vinit Bhatt
> > 703-344-6942
This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:21:06 EDT