|
@@ -21,6 +21,7 @@ import de.nplusc.izc.tools.baseTools.Tools;
|
|
|
import java.io.*;
|
|
|
import java.nio.CharBuffer;
|
|
|
import java.nio.channels.FileChannel;
|
|
|
+import java.nio.charset.StandardCharsets;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
import org.apache.logging.log4j.LogManager;
|
|
@@ -318,11 +319,12 @@ public class FileTK
|
|
|
public static void writeFile(String cnt, String path, boolean app)
|
|
|
{
|
|
|
|
|
|
- FileWriter fw = null;
|
|
|
+ Writer fw = null;
|
|
|
try
|
|
|
{
|
|
|
new File(path).createNewFile();
|
|
|
- fw = new FileWriter(path);
|
|
|
+ fw = new OutputStreamWriter(new FileOutputStream(path), StandardCharsets.UTF_8);
|
|
|
+ //fstream = new OutputStreamWriter(new FileOutputStream(mergedFile), StandardCharsets.UTF_8);
|
|
|
if (!app)
|
|
|
{
|
|
|
fw.write(cnt);
|