File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/java/nl/topicus/mssql2monetdb Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 44 <groupId >nl.topicus.mssql2monetdb</groupId >
55 <artifactId >mssql2monetdb</artifactId >
66 <packaging >jar</packaging >
7- <version >0.5 </version >
7+ <version >0.6 </version >
88 <name >mssql2monetdb</name >
99 <url >http://maven.apache.org</url >
1010
Original file line number Diff line number Diff line change 1111import java .io .IOException ;
1212import java .io .ObjectInputStream ;
1313import java .io .ObjectOutputStream ;
14+ import java .io .OutputStreamWriter ;
1415import java .io .PrintWriter ;
1516import java .io .UnsupportedEncodingException ;
1617import java .io .Writer ;
@@ -599,7 +600,8 @@ private void copyData(CopyTable table) throws Exception
599600 File temp = new File (tmpDir , tmpFilePrefix + "_data.csv" );
600601 LOG .info ("Writing data to temp file: " + temp .getAbsolutePath ());
601602
602- BufferedWriter bw = new BufferedWriter (new FileWriter (temp ));
603+ BufferedWriter bw = new BufferedWriter
604+ (new OutputStreamWriter (new FileOutputStream (temp ), "UTF-8" ));
603605
604606 long startTime = System .currentTimeMillis ();
605607 long insertCount = 0 ;
You can’t perform that action at this time.
0 commit comments