摘要: public static bool IsTextUTF8(byte[] inputStream) { int encodingBytesCount = 0; bool allTextsAreASCIIChars = true; for (int i = 0; i < inputStream.Length; i++) { byte current = inputStream[i]; if ((current & 0x80) == 0x... 阅读全文
posted @ 2013-05-22 09:52 Everglow 阅读(1901) 评论(0) 推荐(0) 编辑