[Squirrel-sql-develop] Fileencoding in CSV export
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
From: Andre S. <a.s...@aa...> - 2007-06-15 12:16:21
|
Hello, currently when we do a CSV export, the default charset is used. This is sometimes a problem, since you can't specify which encoding you=20 will have. For this to change, we only need to change the second line of writeCSV=20 in TableExportCsvCommand.java to: BufferedWriter bw =3D new BufferedWriter(new=20 java.io.OutputStreamWriter(fw, fileEncoding)); The file encoding can then be specified as a parameter. Unfortunately I have not enough swing experience to add a encoding popup=20 to the export dialog. (File TableExportCsvDlg.java) Anyone who could tell me how to do it ? Andr=E9 |