From dbbdd0c128545babefb77632125d27e7299d3244 Mon Sep 17 00:00:00 2001 From: askolesov Date: Thu, 2 Mar 2017 19:36:40 +0300 Subject: [PATCH] Fixed reports encoding. --- libse/NetflixQualityCheck/NetflixQualityReportBuilder.cs | 6 ++++++ src/Forms/Main.cs | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libse/NetflixQualityCheck/NetflixQualityReportBuilder.cs b/libse/NetflixQualityCheck/NetflixQualityReportBuilder.cs index 46f9463abb..70af95bc8f 100644 --- a/libse/NetflixQualityCheck/NetflixQualityReportBuilder.cs +++ b/libse/NetflixQualityCheck/NetflixQualityReportBuilder.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Text; @@ -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 { diff --git a/src/Forms/Main.cs b/src/Forms/Main.cs index dfb33031a9..33e38546d1 100644 --- a/src/Forms/Main.cs +++ b/src/Forms/Main.cs @@ -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, @@ -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,