Useful for debugging issues such #31241 (comment).
Prints the entire response content instead of printing only the position of the byte it can’t be decoded.
The diff between the error messages can be seen by running the wallet_migration.py
functional test with the following patch applied:
0diff --git a/src/wallet/rpc/wallet.cpp b/src/wallet/rpc/wallet.cpp
1--- a/src/wallet/rpc/wallet.cpp (revision d65918c5da52c7d5035b4151dee9ffb2e94d4761)
2+++ b/src/wallet/rpc/wallet.cpp (date 1731005254673)
3@@ -801,7 +801,7 @@
4 }
5
6 UniValue r{UniValue::VOBJ};
7- r.pushKV("wallet_name", res->wallet_name);
8+ r.pushKV("wallet_name", "\xc3\x28");
9 if (res->watchonly_wallet) {
10 r.pushKV("watchonly_name", res->watchonly_wallet->GetName());
11 }