Read all files as UTF-8 (#1035)

Fix encoding issues with some languages such as Chinese
by forcing UTF-8 everywhere. Configuration files written
in ANSI/Latin-1 and other encodings will need conversion.
This commit is contained in:
ORelio 2020-05-29 20:23:03 +02:00
parent cf9bc4c3d5
commit 20fb2323a4
9 changed files with 12 additions and 10 deletions

View file

@ -132,7 +132,7 @@ namespace MinecraftClient.ChatBots
//Load the given file from the startup parameters
if (LookForScript(ref file))
{
lines = System.IO.File.ReadAllLines(file);
lines = System.IO.File.ReadAllLines(file, Encoding.UTF8);
csharp = file.EndsWith(".cs");
thread = null;