Formatting using NumberFormat class is returning an unidentified character, a negative ascii code number. The attached code snippet yields the following:
In the debugger, num looks like this: 5 000 $
bytes = 53 -96 48 48 48 32 36
What is the -96 doing in there? It's causing display problems for me. I've tried compiling under Java 22.214.171.124 and Java 126.96.36.199 and got same results.
Locale locale = new Locale("fr", "CA");
NumberFormat nf = NumberFormat.getCurrencyInstance(locale);
String num = nf.format(5000.0);
byte bytes = num.getBytes();