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 188.8.131.52 and Java 184.108.40.206 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();