public void EUCを判定できる() { var txt = "EUCですよ"; byte[] bytes = EUC_JP.GetBytes(txt); var enc = EncodeDetecter.Delect(bytes); Assert.AreEqual(EUC_JP, enc); }
public void UTF8を判定できる() { var txt = "UTF8か~"; byte[] bytes = UTF8.GetBytes(txt); var enc = EncodeDetecter.Delect(bytes); Assert.AreEqual(UTF8, enc); }
public void S_JISを判定できる() { var txt = "ソース"; byte[] bytes = S_JIS.GetBytes(txt); var enc = EncodeDetecter.Delect(bytes); Assert.AreEqual(S_JIS, enc); }