Skip to content

Commit

Permalink
Merge pull request #15 from DSRCorporation/bugfix/report-encoding
Browse files Browse the repository at this point in the history
Fixed reports encoding.
  • Loading branch information
pavel-belenko authored Mar 7, 2017
2 parents b649f9e + dbbdd0c commit ce3714c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions libse/NetflixQualityCheck/NetflixQualityReportBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

Expand Down Expand Up @@ -57,6 +58,11 @@ public string ExportCSV()
return csvBuilder.ToString();
}

public void SaveCSV(string reportPath)
{
File.WriteAllText(reportPath, ExportCSV(), Encoding.UTF8);
}

public bool IsEmpty {
get
{
Expand Down
4 changes: 2 additions & 2 deletions src/Forms/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20462,7 +20462,7 @@ private void NetflixGlyphCheck(bool showSuccessMessage = true)

try
{
File.WriteAllText(reportPath, glyphCheckReport.ExportCSV());
glyphCheckReport.SaveCSV(reportPath);

string msgFormat = string.Format("{0} {1}",
Configuration.Settings.Language.NetflixQualityCheck.GlyphCheckFailed,
Expand Down Expand Up @@ -20497,7 +20497,7 @@ private void NetflixGlyphCheck(bool showSuccessMessage = true)

try
{
File.WriteAllText(reportPath, whiteSpaceCheckReport.ExportCSV());
whiteSpaceCheckReport.SaveCSV(reportPath);

string msgFormat = string.Format("{0} {1}",
Configuration.Settings.Language.NetflixQualityCheck.WhiteSpaceCheckFailed,
Expand Down

0 comments on commit ce3714c

Please sign in to comment.