<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>云飞扬的ITblog &#187; 网络编程</title>
	<atom:link href="http://www.ajaxcn.net/archives/category/%e7%bd%91%e7%bb%9c%e7%bc%96%e7%a8%8b/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ajaxcn.net</link>
	<description>关注 flex ajax asp.net等</description>
	<lastBuildDate>Sat, 28 Jan 2012 13:00:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>C#中socket编程中文乱码</title>
		<link>http://www.ajaxcn.net/archives/629</link>
		<comments>http://www.ajaxcn.net/archives/629#comments</comments>
		<pubDate>Thu, 03 Dec 2009 15:32:00 +0000</pubDate>
		<dc:creator>云飞扬</dc:creator>
				<category><![CDATA[c#]]></category>
		<category><![CDATA[网络编程]]></category>
		<category><![CDATA[socket]]></category>
		<category><![CDATA[中文乱码]]></category>

		<guid isPermaLink="false">http://www.ajaxcn.net/?p=629</guid>
		<description><![CDATA[如果再发送或接收数据如果出现中文乱码，大概是程序中C#中socket编程中文乱码
如：Encoding.ASCII.GetString(bytes, 0, bytesRec);这个是ASCII码转换，如果是中文就出错，所以解决办法改为Encoding.UTF8.GetString(bytes, 0, bytesRec);UTF-8格式，但是要注意，1中文占2个字符。]]></description>
		<wfw:commentRss>http://www.ajaxcn.net/archives/629/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一个简单c#的socket连接例子源码</title>
		<link>http://www.ajaxcn.net/archives/626</link>
		<comments>http://www.ajaxcn.net/archives/626#comments</comments>
		<pubDate>Wed, 02 Dec 2009 16:29:50 +0000</pubDate>
		<dc:creator>云飞扬</dc:creator>
				<category><![CDATA[c#]]></category>
		<category><![CDATA[网络编程]]></category>
		<category><![CDATA[socket]]></category>
		<category><![CDATA[源码]]></category>

		<guid isPermaLink="false">http://www.ajaxcn.net/?p=626</guid>
		<description><![CDATA[建立一个解决方案，分别建立两个控制台应用程序，一个是client端，一个是server端，本例子源码来自C#网络编程技术与实践第一章具体如下：程序运行先运行server端，再运行客户端，这里客户端运行data = Encoding.ASCII.GetString(buffer, 0, recv); Console.WriteLine(data);这段代码运行乱码，具体解决下篇介绍
]]></description>
		<wfw:commentRss>http://www.ajaxcn.net/archives/626/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

