Results 1 to 2 of 2
- 01-14-2009, 09:28 AM #1
Member
- Join Date
- Jan 2009
- Posts
- 1
- Rep Power
- 0
Missing 4 ISO 3166-1 codes in java.util.Locale
Hi,
I have noticed that the list of ISO 3166-1 codes listed in java.util.Locale is not complete. It contains 242 codes instead of 246 officially. The JE (Jersey) code is missing for example.
The following code returns 242 ISO codes
String[] isoCountries = java.util.Locale.getISOCountries();
System.out.println("nbr of ISO: "+isoCountries.length);
for(int i = 0; i<isoCountries.length;i++) {
System.out.println(isoCountries[i]);
}
nbr of ISO: 242
AD
AE
AF
....
Does anyone know how to get the complete list of ISO?
Or is there a way to complete the list by coding a custom country (iso, countryName, ...) ?
Thank you for your replies and help!
- 01-16-2009, 05:41 PM #2
Similar Threads
-
missing required java project: org.eclipse.swt
By phubaba in forum EclipseReplies: 1Last Post: 12-15-2008, 08:11 PM -
java codes
By Balajee in forum AWT / SwingReplies: 1Last Post: 09-30-2008, 05:04 PM -
setting JSTL locale "java.util.MissingResourceException"
By sabelosimelane in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 09-04-2008, 04:12 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks