From 4451d96ba9230047edf111a9547c8282411166a6 Mon Sep 17 00:00:00 2001 From: Nick Vella Date: Sat, 3 Aug 2019 22:52:56 +1000 Subject: [PATCH] LocEdit: use default encoding --- src/managed/LocEdit/MainForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/managed/LocEdit/MainForm.cs b/src/managed/LocEdit/MainForm.cs index 4b50995a..69b4c0d8 100644 --- a/src/managed/LocEdit/MainForm.cs +++ b/src/managed/LocEdit/MainForm.cs @@ -39,7 +39,7 @@ namespace LocEdit Modified = false; dataGridView.Rows.Clear(); - using (CsvParser csvParser = new CsvParser(new StreamReader(new FileStream(Path.GetFullPath(filePath), FileMode.Open, FileAccess.Read, FileShare.ReadWrite), Encoding.UTF8), true)) + using (CsvParser csvParser = new CsvParser(new StreamReader(new FileStream(Path.GetFullPath(filePath), FileMode.Open, FileAccess.Read, FileShare.ReadWrite), Encoding.Default), true)) { foreach (string[] line in csvParser) { @@ -78,7 +78,7 @@ namespace LocEdit sb.AppendLine(); } - File.WriteAllText(filePath, sb.ToString(), Encoding.UTF8); + File.WriteAllText(filePath, sb.ToString(), Encoding.Default); } public void FindNext(string query)