jisql icon indicating copy to clipboard operation
jisql copied to clipboard

CSV formatter should not hardcode us-ascii encoding

Open ghost opened this issue 6 years ago • 0 comments

Hi,

we've been struggling to find out why all special characters in the CSV output got replaced by a question mark, and it seems this line is responsible:

CsvWriter csvWriter = new CsvWriter( out, delimiter, Charset.forName( "us-ascii" ) );

Since the output is printed to System.out anyway, the system default charset is possibly more appropiate here. This would allow us to run the program with -Dfile.encoding=...

ghost avatar May 04 '18 16:05 ghost