How to convert ASCII data to EBCDIC in C#?

Krishna Kumar N picture Krishna Kumar N · Dec 8, 2010 · Viewed 7.4k times · Source

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

Answer

Darin Dimitrov picture Darin Dimitrov · Dec 8, 2010

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