编码知识介绍.pptx

编码知识介绍

Encoding;传说中: 纯文本 = ASCII = 字符是8位 ??? ;American Standard Code for Information Interchange 7位,128个字符。 例子 Value 意义 7 BEL 48 0 63 ? 65 A 97 a;4;0x00 to 0x1F 控制字符 32个 0x20 to 0x7E 可打印字符 95个 0X7F delete ;ASCII Art; @Test public void testASCII() throws Exception { String oldString = abcd; //字符串转为字节流,又转回为字符串。 True(testString2Byte2String(oldString, Encoding.US_ASCII)); oldString = abcd信之; False(testString2Byte2String(oldString, Encoding.US_ASCII)); };String - Bytes - String encoding = US-ASCII bytes[] = 6162

文档评论(0)

1亿VIP精品文档

相关文档