J'essaie de vérifier si un séparateur de groupe ( char
) est un espace ou non. C'est le cas pour la locale française mais mon test imprime toujours false
.
DecimalFormat formatter = (DecimalFormat) DecimalFormat.getInstance(Locale.forLanguageTag("fr"));
char ch = formatter.getDecimalFormatSymbols().getGroupingSeparator();
System.out.println(ch == ' '); // false
System.out.println(Character.isWhitespace(ch)); // false