Hi @heyangben ,
According to the description in the document below
- On .NET Core, the Default property always returns the UTF8Encoding.
- In .NET Framework on the Windows desktop, the Default property always gets the system's active code page and creates a Encoding object that corresponds to it.
https://learn.microsoft.com/en-us/dotnet/api/system.text.encoding.default?view=net-6.0
Best Regards.
Jiachen Li
----------
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.