火车头的Blog!

火车,沉稳、快速的前进

2006年10月29日 #

使用 MatchEvaluator 委托 对有汉字的整个url进行编码

摘要: 采集项目中,因为经常会碰到中文的url,需要对整个url进行编码呵呵,代码最能说明问题,大家看吧System.Text.RegularExpressions.MatchEvaluatorme=newSystem.Text.RegularExpressions.MatchEvaluator(cnUrlEncode);stringurl="http://community.csdn.net/中国人/E... 阅读全文

posted @ 2006-10-29 21:05 _火车头_ 阅读(896) 评论(0) 推荐(0) 编辑

导航