Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final File localFile = new File(tempDir, exportName);
- //work around to enable and secure UTF-8 output mode
- OutputStream outputStream = new FileOutputStream(localFile);
- outputStream.write(239);
- outputStream.write(187);
- outputStream.write(191);
- percentFormatter = new DecimalFormat(percentsFormat, DecimalFormatSymbols.getInstance(LocaleUtils.toLocale(percentsFormatLocale)));
- try {
- // try (CSVPrinter printer = new CSVPrinter(new PrintWriter(localFile, "UTF-8"), CSVFormat.DEFAULT.withDelimiter(';').withEscape('\\').withQuoteMode(QuoteMode.NONE));) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement