Best practice: Use UTF-8 as your source code encoding

Software engineering teams have become more distributed in the last few years. It’s not uncommon to have programmers in multiple countries, maybe a team in Belarus and others in Japan and in the U.S. Each of these teams most likely speaks different languages, and most likely their host systems use different character encodings by default. […]

Continue Reading

Bugs in Java 7 Locale or ResourceBundle?

While working on a chapter in an upcoming APress book, I was experimenting with Java 7’s Locale and ResourceBundle classes. Java 7 introduces two new Locale categories: DISPLAY and FORMAT. You can set the default locale for localizable user interface resources independently from the default locale for data Format subclasses. For example, you supposedly can […]

Continue Reading

Recently installed Java 7 on Mac OS X

I recently installed Java 7 on my Mac OS X system. Although the installation went smoothly, I did run into one problem that might not be a big issue for you. I didn’t go through the hassle of compiling it for myself. Instead, I opted to grab a precompiled JDK from here:¬†http://code.google.com/p/openjdk-osx-build/downloads/list?q=label:Featured Specifically, I chose […]

Continue Reading

International Enhancements in Java SE 6

One important strength of the Java Platform, Standard Edition (Java SE) has always been its internationalization and localization support. The platform continues to evolve, and Java SE 6 provides developers even more control over how they access and use locale-sensitive resources in their applications. Java SE 6 provides the following major enhancements to its internationalization […]

Continue Reading