摘要: ASCII,unicode, utf8 ,big5 ,gb2312,gbk,gb18030等几种常用编码区别 最近老为编码问题而烦燥,下定决心一定要将其弄明白!本文主要总 结网上一些朋友提供的 ascii,ISO-8859-1,unicode, utf8,gb2312,big5,gbk,gb18030等几种常区别. 1. ASCII码 目前计算机中用得最广泛的字符集及其编码,是由美国... 阅读全文
posted @ 2010-06-26 13:36 段启锋 阅读(1270) 评论(0) 推荐(0) 编辑
摘要: System.DataTime.Now.TOstring() 的各种格式2010年03月06日 星期六 下午 02:07Asp.net中的日期处理函数 //2007年4月24日 this.TextBox6.Text = System.DateTime.Now.ToString("D"); //2007-4-24 this.TextBox7.Text = System.DateTime.Now.To... 阅读全文
posted @ 2010-06-12 13:57 段启锋 阅读(162) 评论(0) 推荐(0) 编辑
摘要: static bool m1(int i) { if (i > 1) { return true; } else { return false; } }类似上述代码非常不易于阅读 且不易于表意static bool m2(int i){bool result;if (i > 1){result = true;}else{result = false;}return result;}尽量... 阅读全文
posted @ 2009-05-11 13:44 段启锋 阅读(534) 评论(16) 推荐(0) 编辑