Monthly Archives: September 2008

JSR 310, is it time for a new Date concept in Java

JSR 310: A New Java Date/Time API by Jesse Farnham — Java SE’s Date and Calendar classes leave much to be desired. Will the third time be the charm? JSR 310, tracking for inclusion in Java SE 7, once again tries to offer a comprehensive date and time API, borrowing much of its design from… Read More »

Understanding locale in the Java platform

Language and geographic environment are two important influences on our culture. They create the system in which we interpret other people and events in our life. They also affect, even define, proper form for presenting ourselves and our thoughts to others. To communicate effectively with another person, we must consider and use that person’s culture,… Read More »

Japanese input methods on Ubuntu

Adding input methods and font support for Japanese is a trivial process for Windows XP and Vista. After moving my laptop from XP to Ubuntu Linux, I realize that familiarity is…well…comfortable. I’m a little lost. Really all I want to do is enable the Japanese input methods on this new, shiny Ubuntu 8.04 system. I… Read More »

Category: Uncategorized Tags:

Managing resources in the Swing Application Framework (JSR 296)

Instead of loading and working with ResourceBundle files directly, you will use the ResourceManager and ResourceMap framework classes to manage resources. A ResourceMap contains the resources defined in a specific ResourceBundle implementation. A map also contains links to its parent chain of ResoureMap objects. The parent chain for any class includes the ResourceMap for that… Read More »

Encoding URIs and their components

As you pass data from the browser to the application server to the database, opportunities for data loss lurk. I highlighted some of those conversion points earlier, but I neglected a browser issue. The JavaScript layer has its own lossy points of interest. One of those points is the escape function. The escape function “encodes”… Read More »

International Domain Names

The Java SE 6 release provides an interesting new class: It’s small, simple…very focused on a single task. That task has two parts: to convert domain names from practically any Unicode character to an ASCII Compatible Encoding or ACE. to convert ACE names back into their full Unicode UTF-16 encoding

JavaScript file encoding

Although JavaScript itself uses Unicode internally, you can still run into charset conversion problems. Consider the following example of charset conversion issues with a very simple HTML and JS file.