mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Enforce non-BOM UTF8 encoding for consoles
This commit is contained in:
1 parent
c70ab5ae97
commit
1b538fa624
1 file changed
+1
-1
@@ -82,7 +82,7 @@ namespace BepInEx
|
||||
// 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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user