摘要:
ASCII,unicode, utf8 ,big5 ,gb2312,gbk,gb18030等几种常用编码区别 最近老为编码问题而烦燥,下定决心一定要将其弄明白!本文主要总 结网上一些朋友提供的 ascii,ISO-8859-1,unicode, utf8,gb2312,big5,gbk,gb18030等几种常区别. 1. ASCII码 目前计算机中用得最广泛的字符集及其编码,是由美国... 阅读全文
摘要:
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... 阅读全文
摘要:
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;}尽量... 阅读全文