Search code examples
c#ebcdic

How to convert ASCII data to EBCDIC in C#?


I read about conversion of ASCII to EBCDIC using this link;
Convert String from ASCII to EBCDIC in Java?

But this is in java. My requirement is in C#.Net.

So can you please help me with this?

Thanks & Regards,
Krishna Kumar


Solution

  • Here's an implementation (by @Jon Skeet) you might find useful.