利用.Net Framework2.0 zip压缩、解压 string 数据
摘要: 利用System.IO.Compression 压缩,解压文件网上能搜索到很多文档了, 但对字符串直接压缩还是很少, 这种压缩还是在webservice返回大量数据时还是用用途的看code吧:using System.Text;using System.IO.Compression;public static string CompressString(string str) { byte[] b...
阅读全文
posted @
2008-08-07 18:07 skyfei 阅读(563) |
评论 (0) 编辑
C#中文和UNICODE字符转换方法
摘要: 转自百度博客: http://hi.baidu.com/zzticzh/blog/item/0ffbdd8856b92890a5c2722d.html没想到百度也有这么专业的博主 //中文转为UNICODE字符string str = "中文"; string outStr = ""; if (!string.IsNullOrEmpty(str)) { for (int i = 0; i <...
阅读全文
posted @
2008-08-01 10:12 skyfei 阅读(1856) |
评论 (3) 编辑