I am formatting some currency in Java. This thing gives out 9.99 €
final NumberFormat nf = NumberFormat.getCurrencyInstance(new Locale("nl", "BE"));
nf.setCurrency(EUR);
nf.format(new BigDecimal("9.99"));
but one of our payment providers that returns pre-formatted amounts will issue € 9.99
What is right for nl-BE?
And even more related to programming, if it turns out that the payment provider, not Java, is correct, how can I fix the Java path without hacks for the language (in real code, the Dutch language in Belgium is not hard-coded)
source
share