﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-licongjie的博客-最新评论</title><link>http://www.cnblogs.com/licongjie/CommentsRSS.aspx</link><description>专心、专注、专业</description><language>zh-cn</language><pubDate>Wed, 07 May 2008 01:55:42 GMT</pubDate><lastBuildDate>Wed, 07 May 2008 01:55:42 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: Socket网络编程学习笔记（2）：面向连接的Socket</title><link>http://www.cnblogs.com/licongjie/archive/2009/03/31/540640.html#1492171</link><dc:creator>wanglinjie_830914</dc:creator><author>wanglinjie_830914</author><pubDate>Tue, 31 Mar 2009 06:34:24 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2009/03/31/540640.html#1492171</guid><description><![CDATA[你好,请问在WEB下怎么实现给服务器发送消息啊?<br/><br/>我的总是有问题,麻烦帮忙看看,谢谢了各位<br/>using System;<br/>using System.Data;<br/>using System.Configuration;<br/>using System.Web;<br/>using System.Web.Security;<br/>using System.Web.UI;<br/>using System.Web.UI.WebControls;<br/>using System.Web.UI.WebControls.WebParts;<br/>using System.Web.UI.HtmlControls;<br/>using System.Threading;<br/>using System.Net;<br/>using System.Net.Sockets;<br/>using System.Text;<br/><br/>public partial class _Default : System.Web.UI.Page <br/>{<br/>    Socket clientSocket;<br/>    Thread clientThread;<br/><br/>    protected void Page_Load(object sender, EventArgs e)<br/>    {<br/><br/>    }<br/>    protected void btnConnect_Click(object sender, EventArgs e)<br/>    {<br/>        clientThread = new Thread(new ThreadStart(ConnectToServer));<br/>        clientThread.Start();<br/>    }<br/>    private void ConnectToServer()<br/>    {<br/>        byte[] data = new byte[1024];<br/><br/>        //创建一个套接字<br/>        IPEndPoint ipep = new IPEndPoint(IPAddress.Parse(&quot;127.0.0.1&quot;), 8001);<br/>        clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);<br/><br/>        //add by jack<br/>        //这样的错误 &quot;线程间操作无效：从不是创建控件“XX”的线程访问它&quot;<br/>        //获取或设置一个值，指示是否捕获对错误线程的调用，这些调用在调试时应用程序时访问控件中的<br/>        //System.Windows.Forms.Control.Handle属性<br/>        //CheckForIllegalCrossThreadCalls = false;<br/>        <br/>        <br/>        //将套接字与远程服务器地址相连<br/>        try<br/>        {<br/>            clientSocket.Connect(ipep);<br/>        }<br/>        catch (SocketException ex)<br/>        {<br/>            //MessageBox.Show(&quot;connect error: &quot; + ex.Message);<br/>            return;<br/>        }<br/><br/>        while (true)<br/>        {<br/>            //接收服务器信息<br/>            int bufLen = 0;<br/>            try<br/>            {<br/>                bufLen = clientSocket.Available;<br/><br/>                clientSocket.Receive(data, 0, bufLen, SocketFlags.None);<br/>                if (bufLen == 0)<br/>                {<br/>                    continue;<br/>                }<br/>            }<br/>            catch (Exception ex)<br/>            {<br/>               // MessageBox.Show(&quot;Receive Error:&quot; + ex.Message);<br/>                return;<br/>            }<br/><br/>            string clientcommand = System.Text.Encoding.ASCII.GetString(data).Substring(0, bufLen);<br/>            //try<br/>            //{<br/>            lstClient.Items.Add(clientcommand);<br/>            //}<br/>            //catch (Exception ex)<br/>            //{ }<br/><br/>            //clientSocket.Shutdown(SocketShutdown.Both);<br/>            //clientSocket.Close();<br/>        }<br/>    }<br/>    protected void btnSend_Click(object sender, EventArgs e)<br/>    {<br/>        //向服务器发送信息<br/><br/>        byte[] data = new byte[1024];<br/>        data = Encoding.ASCII.GetBytes(txtClient.Text);<br/>        clientSocket.Send(data, data.Length, SocketFlags.None);<br/><br/>    }<br/>}<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">wanglinjie_830914</a> 2009-03-31 14:34 <a href="http://www.cnblogs.com/licongjie/archive/2009/03/31/540640.html#1492171#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Socket网络编程学习笔记（2）：面向连接的Socket</title><link>http://www.cnblogs.com/licongjie/archive/2008/08/18/540640.html#1290313</link><dc:creator>sdfdee</dc:creator><author>sdfdee</author><pubDate>Mon, 18 Aug 2008 07:47:32 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/08/18/540640.html#1290313</guid><description><![CDATA[@李.net<br/>--引用--------------------------------------------------<br/>李.net: @Pizza<br/>&lt;br&gt;你在调试程序的时候，如果在线程中访问控件，会提示错误的，但这不影响程序的运行。运行时正常的<br/>--------------------------------------------------------<br/>当出现线程访问控件出错的时候程序怎么进行下去呢？点继续的话客户端又提示线程访问控件出错 根本进行不下去了啊 有什么可以避免的方法吗？<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">sdfdee</a> 2008-08-18 15:47 <a href="http://www.cnblogs.com/licongjie/archive/2008/08/18/540640.html#1290313#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Socket网络编程学习笔记（2）：面向连接的Socket</title><link>http://www.cnblogs.com/licongjie/archive/2008/08/14/540640.html#1286339</link><dc:creator>antique</dc:creator><author>antique</author><pubDate>Thu, 14 Aug 2008 02:26:23 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/08/14/540640.html#1286339</guid><description><![CDATA[哦,明白了.博主把回复删了吧,不好意思.<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">antique</a> 2008-08-14 10:26 <a href="http://www.cnblogs.com/licongjie/archive/2008/08/14/540640.html#1286339#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Socket网络编程学习笔记（2）：面向连接的Socket</title><link>http://www.cnblogs.com/licongjie/archive/2008/08/14/540640.html#1286329</link><dc:creator>antique</dc:creator><author>antique</author><pubDate>Thu, 14 Aug 2008 02:21:59 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/08/14/540640.html#1286329</guid><description><![CDATA[有一点疑惑.<br/>只有clientSocket一个客户socket么<br/>clientSocket = serverSocket.Accept();<br/>那样应该无法实现<br/>&quot;用多线程来实现与多个客户端Socket的连接和通信&quot;吧.<br/>accept应该写在线程里吧,写在主程序的话...<br/>如果有第二个客户连接的话,应该会覆盖第一个的clientsocket,这样第一个就无法通信了.<br/><br/><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">antique</a> 2008-08-14 10:21 <a href="http://www.cnblogs.com/licongjie/archive/2008/08/14/540640.html#1286329#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(2)：关于IIS6.0中应用程序池圆设置的问题</title><link>http://www.cnblogs.com/licongjie/archive/2008/08/13/1129770.html#1285838</link><dc:creator>灯灯</dc:creator><author>灯灯</author><pubDate>Wed, 13 Aug 2008 14:07:50 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/08/13/1129770.html#1285838</guid><description><![CDATA[我看过DZ NT版本里1.1的开发者这样说：用一个磁盘的映射文件去对应缓存。<br><br/>每次获取的时候获取下映射文件key值对应的修改时间，如果和缓存不一致则重新加载缓存。<br><br/>他用这的原因是因为：高速磁盘空间的运行速度也不慢。<br><br/>以上就是跨web园的一种方法，因为磁盘文件是唯一的。<br><br/><br><br/>我是比较怕Server硬盘被迅速写坏。不知道还有没有更好的方法。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">灯灯</a> 2008-08-13 22:07 <a href="http://www.cnblogs.com/licongjie/archive/2008/08/13/1129770.html#1285838#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Socket网络编程学习笔记（6）：使用线程池提高性能</title><link>http://www.cnblogs.com/licongjie/archive/2008/08/05/544638.html#1278737</link><dc:creator>KKcat</dc:creator><author>KKcat</author><pubDate>Tue, 05 Aug 2008 11:26:02 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/08/05/544638.html#1278737</guid><description><![CDATA[lz的笔记写的太好了，强烈要求多写，为博客园造福。<br/>我也是一直看到这篇的，虽然自己不是很懂，但安书上说的，线程池解决了系统在线程创建上的时间的开销，还可以再用上异步的技术，它解决了在多线程，长时间任务的开销，这样系统应该会更稳定的很多。<br/>不知道说的对不对，望lz赐教。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">KKcat</a> 2008-08-05 19:26 <a href="http://www.cnblogs.com/licongjie/archive/2008/08/05/544638.html#1278737#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Socket网络编程学习笔记（2）：面向连接的Socket</title><link>http://www.cnblogs.com/licongjie/archive/2008/08/03/540640.html#1276207</link><dc:creator>KKcat</dc:creator><author>KKcat</author><pubDate>Sun, 03 Aug 2008 07:41:47 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/08/03/540640.html#1276207</guid><description><![CDATA[能写得这么好的高手真少见，能这么详细写的更少了。<br/>对lz感激涕零~~为小弟开启socket大门~<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">KKcat</a> 2008-08-03 15:41 <a href="http://www.cnblogs.com/licongjie/archive/2008/08/03/540640.html#1276207#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：WinForm简单步骤制作</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/07/1186291.html#1187005</link><dc:creator>charry</dc:creator><author>charry</author><pubDate>Wed, 07 May 2008 07:59:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/07/1186291.html#1187005</guid><description><![CDATA[如果是升级的话，可以用smartClient智能部署啊！<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">charry</a> 2008-05-07 15:59 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/07/1186291.html#1187005#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：WinForm简单步骤制作</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/07/1186291.html#1186467</link><dc:creator>李.net</dc:creator><author>李.net</author><pubDate>Wed, 07 May 2008 03:11:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/07/1186291.html#1186467</guid><description><![CDATA[@XiaoFaye<br>呵，好东西，谢谢了<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">李.net</a> 2008-05-07 11:11 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/07/1186291.html#1186467#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：WinForm简单步骤制作</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/07/1186291.html#1186352</link><dc:creator>XiaoFaye</dc:creator><author>XiaoFaye</author><pubDate>Wed, 07 May 2008 02:22:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/07/1186291.html#1186352</guid><description><![CDATA[楼主可以看看这个：<br><br><a href="http://www.cnblogs.com/XiaoFaye/archive/2007/11/02/946777.html" target="_new">http://www.cnblogs.com/XiaoFaye/archive/2007/11/02/946777.html</a><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">XiaoFaye</a> 2008-05-07 10:22 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/07/1186291.html#1186352#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：WinForm简单步骤制作</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/07/1186291.html#1186298</link><dc:creator>狼Robot</dc:creator><author>狼Robot</author><pubDate>Wed, 07 May 2008 01:54:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/07/1186291.html#1186298</guid><description><![CDATA[<img src="http://www.cnblogs.com/Emoticons/yoyocici/223852199.gif"  alt="" />先占位，再慢慢学习。
<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">狼Robot</a> 2008-05-07 09:54 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/07/1186291.html#1186298#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/06/1182843.html#1184331</link><dc:creator>镜涛</dc:creator><author>镜涛</author><pubDate>Mon, 05 May 2008 17:40:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/06/1182843.html#1184331</guid><description><![CDATA[和JS处理乱码问题思路基本相同！<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">镜涛</a> 2008-05-06 01:40 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/06/1182843.html#1184331#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183730</link><dc:creator>李.net</dc:creator><author>李.net</author><pubDate>Mon, 05 May 2008 09:03:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183730</guid><description><![CDATA[@Nina<br>如果是其它体的话，就不应该是gb2312了，HttpUtility.UrlEncode(nv[i], System.Text.Encoding.GetEncoding(&quot;GB2312&quot;));<br>这里应该是相应的编码代号<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">李.net</a> 2008-05-05 17:03 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183730#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183691</link><dc:creator>Nina</dc:creator><author>Nina</author><pubDate>Mon, 05 May 2008 08:39:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183691</guid><description><![CDATA[我覺得還是不行，因為這里是繁體服務器，Server.UrlEncode只對繁體的文字能正確解析，但是對簡體就亂碼了。<br>能否有更多的方法，因為還有越南文，韓文等<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">Nina</a> 2008-05-05 16:39 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183691#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183556</link><dc:creator>李.net</dc:creator><author>李.net</author><pubDate>Mon, 05 May 2008 07:49:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183556</guid><description><![CDATA[@Klesh Wong<br>呵呵是的，我不想因为这样一个功能而把编码改成gb2312的，所以做这一特殊处理<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">李.net</a> 2008-05-05 15:49 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183556#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183414</link><dc:creator>Klesh Wong</dc:creator><author>Klesh Wong</author><pubDate>Mon, 05 May 2008 07:09:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183414</guid><description><![CDATA[@李.net<br>原来是这样子...<br>那楼主应该是用utf8的了,然后需要生成基于gb2312的url...<br>那这样的处理还是比较合理的.<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">Klesh Wong</a> 2008-05-05 15:09 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183414#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183278</link><dc:creator>李.net</dc:creator><author>李.net</author><pubDate>Mon, 05 May 2008 05:57:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183278</guid><description><![CDATA[@Klesh Wong<br>这个问题的环境不一样，不是同一个项目中的，如果是同一个项目中处理的话，有很多方法可以实现，用server.encode一下最简单不过了。现在现在的问题类似于一个友情链接的ＵＲＬ，这个时候，对方的系统有可能是ＡＳＰ，也有可能是ＰＨＰ、ＪＳＰ都有可能，在这个时候，对方都是直接接收参数的，不会去做任何解析操作，所以我这边得做这样的处理<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">李.net</a> 2008-05-05 13:57 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183278#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183259</link><dc:creator>Klesh Wong</dc:creator><author>Klesh Wong</author><pubDate>Mon, 05 May 2008 05:50:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183259</guid><description><![CDATA[楼主,统一编码很重要哦,要是一个项目中有多种编码,日后维护起来一定很头痛.如果说客户端传过来的值是utf8 encoding然后读的时候得到乱码则说明楼主的项目应该是gb2312编码的,既然如此,通过web.config指定客户端以gb2312编码来传值是比较妥当的做法.<br>或者把编码全部统一转换到utf8也是一劳永逸的做法.因为.net本身大量采用utf8编码,现在windows内部使用的也是unicode,理论上来讲,使用utf8反而会比较快,节省了许多内部编码转换的消耗.<br><br>不太明白为何楼主会最终选择增加一个函数来处理URL呢?这种处理方式似乎不透明吧?<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">Klesh Wong</a> 2008-05-05 13:50 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183259#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183230</link><dc:creator>Klesh Wong</dc:creator><author>Klesh Wong</author><pubDate>Mon, 05 May 2008 05:38:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183230</guid><description><![CDATA[@lcg22it<br>这个url有问题,如果想在服务器端得到a的值为&amp;,传递的url应该是:<br>http://baidu.com?a=%26&amp;b=2<br><br>querystring中的键和值都是要经过urlencode后方能传递<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">Klesh Wong</a> 2008-05-05 13:38 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183230#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183137</link><dc:creator>留恋星空</dc:creator><author>留恋星空</author><pubDate>Mon, 05 May 2008 04:44:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183137</guid><description><![CDATA[有空瞧瞧<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">留恋星空</a> 2008-05-05 12:44 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183137#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183131</link><dc:creator>lcg22it</dc:creator><author>lcg22it</author><pubDate>Mon, 05 May 2008 04:42:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183131</guid><description><![CDATA[escape用了不行<br>不好意思，可能我刚才没有说清楚，我是在客户端通过Url传值，然后怎样在服务器端得到a的值（<a href="http://baidu.com?a=&amp;&amp;b=2" target="_new">http://baidu.com?a=&amp;&amp;b=2</a> ）<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">lcg22it</a> 2008-05-05 12:42 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183131#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183086</link><dc:creator>李.net</dc:creator><author>李.net</author><pubDate>Mon, 05 May 2008 04:07:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183086</guid><description><![CDATA[@Longkin<br>可以试一下escape把中文编码一下<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">李.net</a> 2008-05-05 12:07 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183086#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183085</link><dc:creator>李.net</dc:creator><author>李.net</author><pubDate>Mon, 05 May 2008 04:06:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183085</guid><description><![CDATA[@没有昵称<br>整个用是不行的，你可以试一下，它会把://这些都编码的，要不然，我干嘛费这么大劲把它分开来<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">李.net</a> 2008-05-05 12:06 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183085#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183058</link><dc:creator>Longkin</dc:creator><author>Longkin</author><pubDate>Mon, 05 May 2008 03:47:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183058</guid><description><![CDATA[我有个问题哦<br>就是我把动态生成静态的了，然后再这个静态页面中传递中文参数到动态页面，<br>好像怎么搞都不行，感觉是页面编码的问题，尝试了一下，没成功。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">Longkin</a> 2008-05-05 11:47 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1183058#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182996</link><dc:creator>没有昵称</dc:creator><author>没有昵称</author><pubDate>Mon, 05 May 2008 03:11:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182996</guid><description><![CDATA[@lcg22it<br>如果你想让a等于字符串“&amp;”，必须写a = UrlEncode(&quot;&amp;&quot;)。<br>到时候url里面就不是?a=&amp;&amp;b=2这样子了。<br>自己试试<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">没有昵称</a> 2008-05-05 11:11 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182996#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182995</link><dc:creator>没有昵称</dc:creator><author>没有昵称</author><pubDate>Mon, 05 May 2008 03:10:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182995</guid><description><![CDATA[@lcg22it<br>a的值为空啊。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">没有昵称</a> 2008-05-05 11:10 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182995#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182993</link><dc:creator>李.net</dc:creator><author>李.net</author><pubDate>Mon, 05 May 2008 03:08:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182993</guid><description><![CDATA[@lcg22it<br>如果不是特殊的应用，我觉得用server.urlEncode先编码再接收的时候用server.decode解码就可以了<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">李.net</a> 2008-05-05 11:08 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182993#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182990</link><dc:creator>没有昵称</dc:creator><author>没有昵称</author><pubDate>Mon, 05 May 2008 03:06:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182990</guid><description><![CDATA[这个。。。。。<br><br>帅哥啊。。。。。整个字符串调用UrlEncode就可以了，没必要一个个参数拆分开来编码再串起来。。。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">没有昵称</a> 2008-05-05 11:06 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182990#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(4)：URL中包含中文参数造成乱码的解决之道</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182970</link><dc:creator>lcg22it</dc:creator><author>lcg22it</author><pubDate>Mon, 05 May 2008 02:54:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182970</guid><description><![CDATA[请问如果URL是这样的如何解决<br><a href="http://baidu.com?a=&amp;&amp;b=2" target="_new">http://baidu.com?a=&amp;&amp;b=2</a><br>如何得到a的值<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">lcg22it</a> 2008-05-05 10:54 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/05/1182843.html#1182970#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 实战小技巧系列(3)：服务器端数据初始化到客户端数组中</title><link>http://www.cnblogs.com/licongjie/archive/2008/05/03/1178441.html#1179962</link><dc:creator>留恋星空</dc:creator><author>留恋星空</author><pubDate>Fri, 02 May 2008 16:08:00 GMT</pubDate><guid>http://www.cnblogs.com/licongjie/archive/2008/05/03/1178441.html#1179962</guid><description><![CDATA[又学了一招<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/licongjie/" target="_blank">留恋星空</a> 2008-05-03 00:08 <a href="http://www.cnblogs.com/licongjie/archive/2008/05/03/1178441.html#1179962#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>