2010年1月27日

C# 中访问URL之乱码问题解决

摘要: 今天在asp.net下实现一个发短信的功能时需要调用现有的一个URL,并从本地取参数添加到URL上,然后请求此URL。但参数中含有汉字: public bool SendMMSByHttp(string url) { try { HttpWebRequest req = (HttpWebRequest) HttpWebRequest.Create(UrlEncode(url)); HttpWebResponse res = (HttpWebResponse)req.GetResponse()... 阅读全文

posted @ 2010-01-27 18:51 心笑峰 阅读(2844) 评论(1) 推荐(0) 编辑

导航