Fix Encoding.Default.GetChars() Result Different in .NET Framework and .NET 6
When upgrading a legacy .NET Framework application to .NET 6, a custom encryption method that uses Encoding.Default.GetChars() method, which output wrong result. Let's see why and how can we fix it. …