DecimalFormatSymbols unusualSymbols = new DecimalFormatSymbols(new Locale("es", "ES")); 
unusualSymbols.setDecimalSeparator('|'); 
unusualSymbols.setGroupingSeparator('^'); 
String strange = "#,##0.###";
DecimalFormat weirdFormatter = new DecimalFormat(strange, unusualSymbols);