Skip to content

Commit

Permalink
Enforce non-BOM UTF8 encoding for consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
ghorsington committed Jun 3, 2020
1 parent c70ab5a commit 1b538fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BepInEx/Console/ConsoleManager.cs
Expand Up @@ -82,7 +82,7 @@ public static void SetConsoleEncoding()
// Apparently Windows code-pages work in Mono.
// https://stackoverflow.com/a/33456543
// Alternatively we can pass in "shift-jis"
var encoding = ConfigConsoleShiftJis.Value ? Encoding.GetEncoding(932): Encoding.UTF8;
var encoding = ConfigConsoleShiftJis.Value ? Encoding.GetEncoding(932): new UTF8Encoding(false);

SetConsoleEncoding(encoding);
}
Expand Down

0 comments on commit 1b538fa

Please sign in to comment.