Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
GetSupportedConsoleEncoding()
[2/2]
static
Encoding
System.Text.EncodingHelper.GetSupportedConsoleEncoding
(
int
codepage
)
inline
static
package
Definition at line
5
of file
EncodingHelper.cs
.
6
{
7
int
codePage = Encoding.GetEncoding(0).CodePage;
8
if
(codePage == codepage || codePage != 65001)
9
{
10
return
Encoding.GetEncoding(codepage);
11
}
12
if
(codepage != 65001)
13
{
14
return
new
OSEncoding(codepage);
15
}
16
return
new
UTF8Encoding(encoderShouldEmitUTF8Identifier: false);
17
}
References
System.Text.Encoding.GetEncoding()
.
System
Text
EncodingHelper
Generated by
1.10.0