Reputation: 806
If I have an bytes array for EBCDIC encoding, how can I convert it to a c# string?
I tried:
string str= Encoding.GetEncoding("EBCDIC").GetString(bytes);
string str= Encoding.GetEncoding("UTF-EBCDIC").GetString(bytes);
but got exception:
'EBCDIC' is not a supported encoding name
'UTF-EBCDIC' is not a supported encoding name
Is it a legacy encoding not supported in .Net anymore?
Upvotes: 0
Views: 500