Fix proper UTF-8 encoding for CSV export
This commit is contained in:
Joe Pfeiffer 2021-05-12 17:01:59 -06:00 committed by GitHub
commit fea2497ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {