mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
23 lines
No EOL
419 B
C#
23 lines
No EOL
419 B
C#
#if NETCORE
|
|
using System.Text;
|
|
#endif
|
|
|
|
namespace DiscUtils.CoreCompat
|
|
{
|
|
internal static class EncodingHelper
|
|
{
|
|
private static bool _registered;
|
|
|
|
public static void RegisterEncodings()
|
|
{
|
|
if (_registered)
|
|
return;
|
|
|
|
_registered = true;
|
|
|
|
#if NETCORE
|
|
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
|
#endif
|
|
}
|
|
}
|
|
} |