LocEdit: use default encoding

This commit is contained in:
Nick Vella 2019-08-03 22:52:56 +10:00
parent 88b018607b
commit 4451d96ba9
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ namespace LocEdit
Modified = false; Modified = false;
dataGridView.Rows.Clear(); 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) foreach (string[] line in csvParser)
{ {
@ -78,7 +78,7 @@ namespace LocEdit
sb.AppendLine(); sb.AppendLine();
} }
File.WriteAllText(filePath, sb.ToString(), Encoding.UTF8); File.WriteAllText(filePath, sb.ToString(), Encoding.Default);
} }
public void FindNext(string query) public void FindNext(string query)