EBCDIC support in c#

249 Views Asked by At

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?

0

There are 0 best solutions below