就像 乔普·艾根 ( JoopEggen)在他的回答中所建议的那样,这是
u00a0不中断的空间。
作为解决方法,我得到了千位分隔符,如下所示
String input = NumberFormat.getNumberInstance(Locale.FRANCE).format(123123123);System.out.println("String after conversion in locale "+input);DecimalFormat df = (DecimalFormat) NumberFormat.getNumberInstance(Locale.FRANCE);DecimalFormatSymbols symbols = df.getDecimalFormatSymbols();char thousandSep = symbols.getGroupingSeparator();input = input.replace(thousandSep, '.');它按预期工作
String after conversion in locale 123 123 123After replace space with dot 123.123.123



