Example #1
0
        public void EUCを判定できる()
        {
            var txt = "EUCですよ";

            byte[] bytes = EUC_JP.GetBytes(txt);
            var    enc   = EncodeDetecter.Delect(bytes);

            Assert.AreEqual(EUC_JP, enc);
        }
Example #2
0
        public void UTF8を判定できる()
        {
            var txt = "UTF8か~";

            byte[] bytes = UTF8.GetBytes(txt);
            var    enc   = EncodeDetecter.Delect(bytes);

            Assert.AreEqual(UTF8, enc);
        }
Example #3
0
        public void S_JISを判定できる()
        {
            var txt = "ソース";

            byte[] bytes = S_JIS.GetBytes(txt);
            var    enc   = EncodeDetecter.Delect(bytes);

            Assert.AreEqual(S_JIS, enc);
        }