Fix proper UTF-8 encoding for CSV export

This commit is contained in:
Neil Balch 2021-05-11 11:05:00 -07:00
parent 44e6856103
commit 62df54f9a1

View File

@ -3,6 +3,7 @@ package net.sf.openrocket.file;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@ -48,7 +49,7 @@ public class CSVExport {
PrintWriter writer = null;
try {
writer = new PrintWriter(stream);
writer = new PrintWriter(stream, false, Charset.forName("UTF-8"));
// Write the initial comments
if (simulationComments) {