Encoding.Default go home.
MODIFY
WalletWasabi/Helpers/PasswordHelper.cs
WalletWasabi/Helpers/PasswordHelper.cs
@@ -23,8 +23,7 @@ namespace WalletWasabi.Helpers
{
// On OSX Avalonia gets the string from the Clipboard as byte[] and size.
// The size was mistakenly taken from the size of the original string which is not correct because of the UTF8 encoding.
-
- byte[] bytes = Encoding.Default.GetBytes(text);
+ byte[] bytes = Encoding.UTF8.GetBytes(text);
var myString = Encoding.UTF8.GetString(bytes.Take(text.Length).ToArray());
return text.Substring(0, myString.Length);
}

Encoding.Default go home.