C# - Create own Encoding for Roman8 charset

2019-05-24 06:29发布

The Roman8 charset is not supported by C#, but I need to use it properly (Encoding / Decoding strings), so I want to know what is the best method to create my own Encoding in order to support this Encoding?

Is that enough :

class Roman8Encoding : Encoding

What about Encoder ? Decoder ? EncoderFallback ? DecoderFallback ?

Any explanation on how do the job correctly is welcome.

Thanks !

1条回答
我欲成王,谁敢阻挡
2楼-- · 2019-05-24 07:02

I don't have time to give details at the moment, but I created an Encoding implementation for EBCDIC. You could use that source code as a starting point. I wrote it a long time ago, so I would probably do various things differently these days - but it's a start...

查看更多
登录 后发表回答