摘要:
协议地址:WAP195 网络字节顺序:big-endian。 为什么要加0x40? 参考:Compressing XML When an element contains content (text nodes or child elements) but no attributes, you add a numeric value of 0x40to th... 阅读全文
摘要:
因为曾经干了啥事儿,才印象特别深刻。 将byte存入String的后果 String res = “”; res += (char) 0xc3; byte[] bytes = res.getBytes(); 这是曾经的一部分程序。习惯使用String,并在之前并没有遇到任何错误。但是这次遇到了。 bytes里面不止一个byte,而是两个。这导致“... 阅读全文