diff --git a/src/Writers/CompStatusWriter.cs b/src/Writers/CompStatusWriter.cs index 26a79a3..b8007f6 100644 --- a/src/Writers/CompStatusWriter.cs +++ b/src/Writers/CompStatusWriter.cs @@ -56,7 +56,7 @@ protected override void CreateFile() var exists = File.Exists(filename); _streamWriter = new StreamWriter( new FileStream(filename, exists ? FileMode.Truncate : FileMode.Create, FileAccess.ReadWrite), - Encoding.UTF8); + new UTF8Encoding(false)); _streamWriter.WriteLine("ComputerName,Task,Status"); } diff --git a/src/Writers/JsonDataWriter.cs b/src/Writers/JsonDataWriter.cs index 8698aac..9bb456a 100644 --- a/src/Writers/JsonDataWriter.cs +++ b/src/Writers/JsonDataWriter.cs @@ -59,7 +59,7 @@ protected override void CreateFile() _fileName = filename; - _jsonWriter = new JsonTextWriter(new StreamWriter(filename, false, Encoding.UTF8)); + _jsonWriter = new JsonTextWriter(new StreamWriter(filename, false, new UTF8Encoding(false))); _jsonWriter.Formatting = PrettyPrint; _jsonWriter.WriteStartObject(); _jsonWriter.WritePropertyName("data");