我在Java中格式化一些货币.这件作品输出9,99€
final NumberFormat nf = NumberFormat.getCurrencyInstance(new Locale("nl", "BE"));
nf.setCurrency(EUR);
nf.format(new BigDecimal("9.99"));
Run Code Online (Sandbox Code Playgroud)
但我们的一家支付服务提供商退回预先格式化的金额,输出9,99欧元
哪个是正确的nl-BE?
更多的编程相关,如果事实证明支付提供商,而不是Java,是正确的,我如何修复Java方式没有每个区域的黑客攻击(在真实代码中,比利时语言环境中的荷兰语不是硬编码的)