文字コードを判別する
- byts (array< Byte >[]()[])
- 文字コードを調べるデータ
適当と思われるEncodingオブジェクト。
判断できなかった時はnull。
Jcode.pmのgetcodeメソッドを移植したものです。
Jcode.pm(http://openlab.ring.gr.jp/Jcode/index-j.html)
C#バージョン:http://dobon.net/vb/dotnet/string/detectcode.html