Make output files UTF-8 because of special character issues.

This commit is contained in:
Matt Nadareski
2016-03-25 11:20:58 -07:00
parent 8b0f15fa35
commit d81d536c3d

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data.SQLite;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
@@ -150,7 +151,7 @@ namespace DATabase
try
{
FileStream fs = File.Create(datname + (_old ? ".dat" : ".xml"));
StreamWriter sw = new StreamWriter(fs);
StreamWriter sw = new StreamWriter(fs, Encoding.UTF8);
// Temporarilly set _system if we're in MEGAMERGED mode to get the right header skip XML
if (_systems == "" && _sources == "")