LocEdit: use default encoding
This commit is contained in:
parent
88b018607b
commit
4451d96ba9
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue