2011年6月20日
摘要: using System;using System.IO;using System.Text;using System.Windows.Forms;using System.IO.Compression;using System.Collections.Generic; namespace CompressionSample{ class ZipUtil { public void CompressFile(string iFile, string oFile) { //判断文件是否存在 if (File.Exists(iFile) == false) { throw new FileNotF 阅读全文
posted @ 2011-06-20 12:00 一直在前进 阅读(803) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 解析URL(可以正确识别UTF-8和GB2312编码) /// </summary> /// <param name="uriString"></param> /// <returns></returns> public static string DecodeURL(String uriString) { //正则1:^(?:[\x00-\x7f]|[\xe0-\xef][\x80-\xbf]{2})+$ //正则2:^(?:[\x00-\x7f]|[\xfc-\x 阅读全文
posted @ 2011-06-20 11:57 一直在前进 阅读(736) 评论(0) 推荐(0) 编辑