Posts tagged with: Java
One of the side effects of the open nature of the JDK and wide JDK development community is that we have an important-feeling decision to make early in the life of a Java project - which JDK to use?
Java has traditionally been a "heavyweight" language not well suited to quick, hacky scripting. That's changed with some of the features added in the last few releases. This is about scripting in Java - NOT Javascript.
A rather long and rambling post about various things that are likely to cause headaches when dealing with the world outside your own country. More accurately, things that have caused me headaches in the past, so others can learn from my pain.
To format internationalized data properly, Java has a bunch of handy features. If you're English, you'll probably be setting your Locale to Locale.ENGLISH and all your i18n messages will come out fine, numbers, percentages, currencies etc. look right, and it all pretty much works. However...
Locale strings should be fairly simple, there's nice ISO standards covering this stuff. Yet despite all their good work in the last few years, the Java team has managed to confuse matters and make life awkward when it comes to something basic like this.