Because Java's native character set is Unicode, you may be surprised when many Java user interface components don't display characters correctly. Instead of seeing ???, you see ???. So, what's wrong here? Java is supposed to display these characters, right? The answer is yes, maybe. Correct character display often depends on a little known and less understood file called font.properties. If you've installed Sun's Java Development Kit, you have this file. If you use a web browser, you have this file. Having a properly configured font.properties file can make all the difference in whether you see multilingual text or mangled gibberish in your Java application.
Java's font.properties file is platform dependent. That means that its contents will be different depending on your operating system (OS). However, the basic structure and purpose will remain the same. Since the file must be configured for a specific OS, this article will describe the file on a Windows 98 and Windows NT 4.0 system. Don't let the choice of OS frustrate you or discourage you from reading further; you should be able to apply the concepts to your own file whether you use Mac OS, Solaris, Linux, or something else entirely different.
|When the world wants to talk, it speaks Unicode|
International Unicode Conferences are organized by Global Meeting Services, Inc., (GMS).
GMS is pleased to be able to offer the International Unicode Conferences under an exclusive
license granted by the Unicode Consortium. All responsibility for conference finances and
operations is borne by GMS. The independent conference board serves solely at the pleasure
of GMS and is composed of volunteers active in Unicode and in international software
development. All inquiries regarding International Unicode Conferences should be addressed
Unicode and the Unicode logo are registered trademarks of Unicode, Inc. Used with permission.
24 January 1999, Webmaster