2011年11月17日

每日学习笔记(23)

摘要: 1,从前端传过来的参数是"\u9676\u9676\u6D4B\u8BD5\u8D26\u53F701"这样的unicode编码,需要将其转换为中文字符串,发现java.util.Properties类中有一个loadConvert函数可以完成这件事,直接copy过来使用。publicstaticStringloadConvert(char[]in,intoff,intlen,char[]convtBuf){if(convtBuf.length<len){intnewLen=len*2;if(newLen<0){newLen=Integer.MAX_VALUE; 阅读全文

posted @ 2011-11-17 12:17 Phinecos(洞庭散人) 阅读(754) 评论(0) 推荐(0) 编辑

导航