摘要: 1.Grid Control for .NET Compact Framework2.Upload Any File Type through a Web Service3.Creating a Filtered List of Customers on a Mobile Device 阅读全文
posted @ 2009-11-19 21:40 张兴业 阅读(209) 评论(0) 推荐(0) 编辑
摘要: http://wallimn.javaeye.com/blog/374917方法一:C#代码 //////生成拼音简码//////Unicode编码字符串///拼音简码:stringpublicstaticstringGetPinyinCode(stringunicodeString){inti=0;ushortkey=0;stringstrResult=string.Empty;//创建两个不同的encoding对象Encodingunicode=Encoding.Unicode;//创建GBK码对象Encodinggbk=Encoding.GetEncoding(936);//将unico 阅读全文
posted @ 2009-11-19 13:05 张兴业 阅读(2312) 评论(0) 推荐(0) 编辑
摘要: http://tjulance.spaces.live.com/blog/cns!36672076BED3E780!634.entry1 unicode编码表 UNICODE只有一个字符集,中、日、韩的三种文字占用了Unicode中0x3000到0x9FFF的部分 Unicode目前普遍采用的是UCS-2,它用两个字节来编码一个字符, 比如汉字"经"的编码是0x7ECF,注意字符编码一般用十六进制来 表示,为了与十进制区分,十六进制以0x开头,0x7ECF转换成十进制 就是32463,UCS-2用两个字节来编码字符,两个字节就是16位二进制, 2的16次方等于65536,所 阅读全文
posted @ 2009-11-19 11:09 张兴业 阅读(4153) 评论(0) 推荐(0) 编辑
摘要: 今天中午,我突然想搞清楚Unicode和UTF-8之间的关系,于是就开始在网上查资料。结果,这个问题比我想象的复杂,从午饭后一直看到晚上9点,才算初步搞清楚。下面就是我的笔记,主要用来整理自己的思路。但是,我尽量试图写得通俗易懂,希望能对其他朋友有用。毕竟,字符编码是计算机技术的基石,想要熟练使用计算机,就必须懂得一点字符编码的知识。1. ASCII码我们知道,在计算机内部,所有的信息最终都表示为一个二进制的字符串。每一个二进制位(bit)有0和1两种状态,因此八个二进制位就可以组合出256种状态,这被称为一个字节(byte)。也就是说,一个字节一共可以用来表示256种不同的状态,每一个状态对 阅读全文
posted @ 2009-11-19 11:07 张兴业 阅读(201) 评论(0) 推荐(0) 编辑
摘要: IP地址查询http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl手机号码查询api.showji.com参考:www.webxml.com.cnhttp://blog.csdn.net/SoS1437/archive/2009/06/24/4293302.aspxhttp://lingchuangsong.blog.163.com/blog/static/12693232200911334914128/ 阅读全文
posted @ 2009-11-19 11:04 张兴业 阅读(116) 评论(0) 推荐(0) 编辑
摘要: static public string GetChineseSpell(string strText) { int len = strText.Length; string myStr = ""; for(int i=0;i 1) { int area = (short)arrCN[0]; int pos = (short)arrCN[1]; int code = (area<<8) + pos; int[] areacode = {45217,45253,45761,46318,46826,47010,47297,47614,48119,48119... 阅读全文
posted @ 2009-11-19 10:08 张兴业 阅读(259) 评论(0) 推荐(0) 编辑