<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/AresGod" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/AresGod" type="application/rss+xml"></fs:self_link><lastBuildDate>Sat, 30 May 2009 21:03:00 GMT</lastBuildDate><title>AresGod的专栏</title><link>http://blog.csdn.net/AresGod/</link><item><title>QProcess Class Reference</title><link>http://blog.csdn.net/AresGod/archive/2009/05/30/4226578.aspx</link><wfw:comment>http://blog.csdn.net/AresGod/comments/4226578.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/AresGod/comments/commentRss/4226578.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4226578</trackback:ping><description>QProcess Class Reference&lt;img src =&quot;http://blog.csdn.net/AresGod/aggbug/4226578.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/225414619/AresGod/csdn.net/s.gif?r=http://blog.csdn.net/AresGod/archive/2009/05/30/4226578.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/AresGod/225414619/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/AresGod/225414619/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 31 May 2009 05:03:00 +0800</pubDate><author>AresGod</author><comments>http://blog.csdn.net/AresGod/archive/2009/05/30/4226578.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/AresGod/archive/2009/05/30/4226578.aspx</guid><dc:creator>AresGod</dc:creator><fs:srclink>http://blog.csdn.net/AresGod/archive/2009/05/30/4226578.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/AresGod/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/AresGod/~1335038/225414619/1339759</fs:itemid></item><item><title>QT中调用外部程序的方法</title><link>http://blog.csdn.net/AresGod/archive/2009/05/30/4226569.aspx</link><wfw:comment>http://blog.csdn.net/AresGod/comments/4226569.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/AresGod/comments/commentRss/4226569.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4226569</trackback:ping><description>QT中调用外部程序的方法   QTHREAD QProcess&lt;img src =&quot;http://blog.csdn.net/AresGod/aggbug/4226569.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/225414621/AresGod/csdn.net/s.gif?r=http://blog.csdn.net/AresGod/archive/2009/05/30/4226569.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/AresGod/225414621/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/AresGod/225414621/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 31 May 2009 04:57:00 +0800</pubDate><author>AresGod</author><comments>http://blog.csdn.net/AresGod/archive/2009/05/30/4226569.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/AresGod/archive/2009/05/30/4226569.aspx</guid><dc:creator>AresGod</dc:creator><fs:srclink>http://blog.csdn.net/AresGod/archive/2009/05/30/4226569.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/AresGod/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/AresGod/~1335038/225414621/1339759</fs:itemid></item><item><title>QT下实现对linux 的Shell 调用 的几种方法 QProcess AND QThread</title><link>http://blog.csdn.net/AresGod/archive/2009/05/30/4226542.aspx</link><wfw:comment>http://blog.csdn.net/AresGod/comments/4226542.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/AresGod/comments/commentRss/4226542.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4226542</trackback:ping><description>&lt;br /&gt;&lt;br /&gt;================================================&lt;br /&gt;使用QProcess QThread&lt;br /&gt;================================================&lt;br /&gt;&lt;br /&gt;======================================================&lt;br /&gt;#include &lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;        QProcess::execute(&quot;ls&quot;);&lt;br /&gt;        return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;=======================================================&lt;br /&gt;QProcess   *poc   =   new   QProcess; &lt;br /&gt;poc-&gt; start( &quot;ping   222.207.53.1&gt; hh &quot;); &lt;br /&gt;打开hh文档   读取里面&lt;img src =&quot;http://blog.csdn.net/AresGod/aggbug/4226542.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/225414625/AresGod/csdn.net/s.gif?r=http://blog.csdn.net/AresGod/archive/2009/05/30/4226542.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/AresGod/225414625/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/AresGod/225414625/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 31 May 2009 04:44:00 +0800</pubDate><author>AresGod</author><comments>http://blog.csdn.net/AresGod/archive/2009/05/30/4226542.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/AresGod/archive/2009/05/30/4226542.aspx</guid><dc:creator>AresGod</dc:creator><fs:srclink>http://blog.csdn.net/AresGod/archive/2009/05/30/4226542.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/AresGod/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/AresGod/~1335038/225414625/1339759</fs:itemid></item><item><title>超级十全大补贴!!打造您心目中完美的TREO!!『上』</title><link>http://blog.csdn.net/AresGod/archive/2009/03/28/4031855.aspx</link><wfw:comment>http://blog.csdn.net/AresGod/comments/4031855.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/AresGod/comments/commentRss/4031855.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4031855</trackback:ping><description>超级十全大补贴!!打造您心目中完美的TREO!!『上』&lt;br /&gt;&lt;br /&gt;     我是去年8月用600,再到10月分入手650,一直到现在,不知不觉已经过了那么久了.快乐的时间总是过得快啊,怪不得王羲之说:快然自足,曾不知老之将至。有TREO陪伴的日子就是快乐啊，哈哈，题外话。相信从600升级到650的人第一个惊喜就是屏幕真是太漂亮了，太精细了。但是接踵而至的，就是650的不稳定。早期版本的ROM是让人够失望的，但是随便新版的ROM和可精简ROM的工具问世后，650的稳定性也逐渐提高。（有人还曾抱怨，我的650怎么这么稳定啊~，看来他们已经习惯650重启了。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   我也不清楚为什么要发此贴，也许没什么经验可言，也没什么经典的话可讲，只是想把这半年来积累的东西写下来，顺便给大家看看，如果有意见，有砖头扔砖头，有番茄扔番茄，哦，对了，臭鸡蛋也不错。:)2 :)2      &lt;br /&gt;&lt;br /&gt;更新日志&lt;br /&gt;:)2 2.21 更新了JAVA在系统二里面.&lt;br /&gt;2.21 更新650模拟器&lt;br /&gt;          2.24 新增生活附&lt;img src =&quot;http://blog.csdn.net/AresGod/aggbug/4031855.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/AresGod/225414626/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/AresGod/225414626/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sat, 28 Mar 2009 20:16:00 +0800</pubDate><author>AresGod</author><comments>http://blog.csdn.net/AresGod/archive/2009/03/28/4031855.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/AresGod/archive/2009/03/28/4031855.aspx</guid><dc:creator>AresGod</dc:creator><fs:srclink>http://blog.csdn.net/AresGod/archive/2009/03/28/4031855.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/AresGod/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/AresGod/~1335038/225414626/1339759</fs:itemid></item><item><title>CString 操作指南</title><link>http://blog.csdn.net/AresGod/archive/2008/11/25/3369137.aspx</link><wfw:comment>http://blog.csdn.net/AresGod/comments/3369137.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/AresGod/comments/commentRss/3369137.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3369137</trackback:ping><description>&lt;br /&gt;CString 操作指南&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;原著：Joseph M. Newcomer&lt;br /&gt;&lt;br /&gt;翻译：littleloach&lt;br /&gt;原文出处：codeproject：CString Management&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;通过阅读本文你可以学习如何有效地使用 CString。&lt;br /&gt;&lt;br /&gt;　　CString 是一种很有用的数据类型。它们很大程度上简化了MFC中的许多操作，使得MFC在做字符串操作的时候方便了很多。不管怎样，使用CString有很多特殊的技巧，特别是对于纯C背景下走出来的程序员来说有点难以学习。这篇文章就来讨论这些技巧。&lt;br /&gt;　　使用CString可以让你对字符串的操作更加直截了当。这篇文章不是CString的完全手册，但囊括了大部分常见基本问题。&lt;br /&gt;&lt;br /&gt;这篇文章包括以下内容： 
&lt;br /&gt;CString 对象的连接格式化字符串（包括 int 型转化为 CString ）CString 型转化成 int 型CString 型和 char* 类型的相互转化&lt;br /&gt;char*&lt;img src =&quot;http://blog.csdn.net/AresGod/aggbug/3369137.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/AresGod/225414627/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/AresGod/225414627/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 25 Nov 2008 21:47:00 +0800</pubDate><author>AresGod</author><comments>http://blog.csdn.net/AresGod/archive/2008/11/25/3369137.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/AresGod/archive/2008/11/25/3369137.aspx</guid><dc:creator>AresGod</dc:creator><fs:srclink>http://blog.csdn.net/AresGod/archive/2008/11/25/3369137.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/AresGod/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/AresGod/~1335038/225414627/1339759</fs:itemid></item><item><title>GPS串口数据接收程序实例</title><link>http://blog.csdn.net/AresGod/archive/2008/11/25/3369085.aspx</link><wfw:comment>http://blog.csdn.net/AresGod/comments/3369085.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/AresGod/comments/commentRss/3369085.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3369085</trackback:ping><description>实际GPS的原理是超级简单，买个模块，加上电，用TTL或者RS232，读就行了
但是在实际的使用中还是有很多细节要注意，比如辐射，冷启动等问题
理论到实践，到成品，到商用，实践上还是有一段路要走，每一步也不是想象中的那么容易，当然也不是那么的难。。。
本文转载主要讲述了GPS的报文格式，和报文的一个处理方法，觉得有参考价值就转过来了&lt;img src =&quot;http://blog.csdn.net/AresGod/aggbug/3369085.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/AresGod/225414628/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/AresGod/225414628/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 25 Nov 2008 21:42:00 +0800</pubDate><author>AresGod</author><comments>http://blog.csdn.net/AresGod/archive/2008/11/25/3369085.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/AresGod/archive/2008/11/25/3369085.aspx</guid><dc:creator>AresGod</dc:creator><fs:srclink>http://blog.csdn.net/AresGod/archive/2008/11/25/3369085.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/AresGod/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/AresGod/~1335038/225414628/1339759</fs:itemid></item><item><title>ASCII  to UNICODE UTF8  char String 等字符处理的一个小结</title><link>http://blog.csdn.net/AresGod/archive/2008/11/25/3369037.aspx</link><wfw:comment>http://blog.csdn.net/AresGod/comments/3369037.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/AresGod/comments/commentRss/3369037.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3369037</trackback:ping><description>&lt;br /&gt;今天把ASCII到UNICODE的转换工作完成了&lt;br /&gt;把用到的资源整理一下，说不上还有用&lt;br /&gt;经常见到的问题实际上就是转换和显示，首先解决的是转换的问题&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#include  //使用C++标准库的string类时&lt;br /&gt;using namespace std; //同上&lt;br /&gt;#include &lt;br /&gt;#include &lt;br /&gt;#include  //要将string类和int类型直接转换最好有这些包含，&lt;br /&gt;//因为自己写一个转换函数比较方便，函数定义参考如下&lt;br /&gt;string getstring ( const int n )&lt;br /&gt;{&lt;br /&gt;std::stringstream newstr;&lt;br /&gt;newstr&lt;br /&gt;return newstr.str();&lt;br /&gt;}&lt;br /&gt;string 转 CString&lt;br /&gt;CString.format(”%s”, string.c_str(&lt;img src =&quot;http://blog.csdn.net/AresGod/aggbug/3369037.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/AresGod/225414629/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/AresGod/225414629/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 25 Nov 2008 21:31:00 +0800</pubDate><author>AresGod</author><comments>http://blog.csdn.net/AresGod/archive/2008/11/25/3369037.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/AresGod/archive/2008/11/25/3369037.aspx</guid><dc:creator>AresGod</dc:creator><fs:srclink>http://blog.csdn.net/AresGod/archive/2008/11/25/3369037.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/AresGod/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/AresGod/~1335038/225414629/1339759</fs:itemid></item><item><title>MultiByteToWideChar</title><link>http://blog.csdn.net/AresGod/archive/2008/11/24/3365175.aspx</link><wfw:comment>http://blog.csdn.net/AresGod/comments/3365175.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/AresGod/comments/commentRss/3365175.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3365175</trackback:ping><description>这个是我们需要转化的多字节字符串: 
char sText[20] = {&quot;多字节字符串!OK!&quot;};

我们需要知道转化后的宽字符需要多少个数组空间.虽然在这个里程里面,我们可以直接定义一个20*2宽字符的数组,并且事实上将运行得非常轻松愉快.但假 如多字节字符串更多,达到上千个乃至上万个,我们将会发现其中浪费的内存将会越来越多.所以以多字节字符的个数的两倍作为宽字符数组下标的声明绝对不是一 个好主意.
所幸,我们能够确知所需要的数组空间.
我们只需要将MultiByteToWideChar()的第四个形参设为-1,即可返回所需的短字符数组空间的个数: 
&lt;img src =&quot;http://blog.csdn.net/AresGod/aggbug/3365175.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/AresGod/225414630/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/AresGod/225414630/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 25 Nov 2008 07:07:00 +0800</pubDate><author>AresGod</author><comments>http://blog.csdn.net/AresGod/archive/2008/11/24/3365175.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/AresGod/archive/2008/11/24/3365175.aspx</guid><dc:creator>AresGod</dc:creator><fs:srclink>http://blog.csdn.net/AresGod/archive/2008/11/24/3365175.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/AresGod/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/AresGod/~1335038/225414630/1339759</fs:itemid></item><item><title>UTF-8 and Unicode FAQ</title><link>http://blog.csdn.net/AresGod/archive/2008/11/24/3364934.aspx</link><wfw:comment>http://blog.csdn.net/AresGod/comments/3364934.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/AresGod/comments/commentRss/3364934.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3364934</trackback:ping><description>UTF-8 and Unicode FAQ
by Markus Kuhn 

中国LINUX论坛翻译小组 xLoneStar[译] 2000年2月 
这篇文章说明了在 POSIX 系统 (Linux,Unix) 上使用 Unicode/UTF-8 所需要的信息. 在将来不远的几年里, Unicode 已经很接近于取代 ASCII 与 Latin-1 编码的位置了. 它不仅允许你处理处理事实上存在于地球上的任何语言文字, 而且提供了一个全面的数学与技术符号集, 因此可以简化科学信息交换.

UTF-8 编码提供了一种简便而向后兼容的方法, 使得那种完全围绕 ASCII 设计的操作系统, 比如 Unix, 也可以使用 Unicode. UTF-8 就是 Unix, Linux 已经类似的系统使用 Unicode 的方式. 现在是你了解它的时候了.
&lt;img src =&quot;http://blog.csdn.net/AresGod/aggbug/3364934.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/AresGod/225414631/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/AresGod/225414631/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 25 Nov 2008 06:37:00 +0800</pubDate><author>AresGod</author><comments>http://blog.csdn.net/AresGod/archive/2008/11/24/3364934.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/AresGod/archive/2008/11/24/3364934.aspx</guid><dc:creator>AresGod</dc:creator><fs:srclink>http://blog.csdn.net/AresGod/archive/2008/11/24/3364934.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/AresGod/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/AresGod/~1335038/225414631/1339759</fs:itemid></item><item><title>UTF-8与GB2312之间的互换</title><link>http://blog.csdn.net/AresGod/archive/2008/11/24/3364926.aspx</link><wfw:comment>http://blog.csdn.net/AresGod/comments/3364926.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/AresGod/comments/commentRss/3364926.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3364926</trackback:ping><description>相信一定有不少的程序开发人员时常会遇到字符编码的问题，而这个问题也是非常让人头痛的。因为这些都是潜在的错误，要找出这些错误也得要有这方面的开发经验才行。特别是在处理xml文档时 ，该问题的出现就更加的频繁了，有一次用java写服务器端程序，用vc写客户端与之交互。交互的协议都是用xml写的。结果在通讯时老是发现数据接受不正确。纳闷！于是用抓取网络数据包工具抓取数据，后来才发现原来是java上xml的头是这样的,而vc上默认的是GB2312。所以一遇到汉字数据就不正确了。去网上找资料，这方面的文章好象特别少，针对像这样的问题，下面我介绍一下我自己写的一个转换程序。当然，程序很简单。如果有画蛇添足的地方，还望各位高手一笑了之。
　　如果您对UTF-8、Unicode、GB2312等还是很陌生的话，请查看http://www.linuxforum.net/books/UTF-8-Unicode.html，我这里就不浪费口舌了。下面介绍一下WinAPI的两个函数：WideCharToMultiByte、MultiByteToWideChar。&lt;img src =&quot;http://blog.csdn.net/AresGod/aggbug/3364926.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/AresGod/225414632/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/AresGod/225414632/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 25 Nov 2008 06:35:00 +0800</pubDate><author>AresGod</author><comments>http://blog.csdn.net/AresGod/archive/2008/11/24/3364926.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/AresGod/archive/2008/11/24/3364926.aspx</guid><dc:creator>AresGod</dc:creator><fs:srclink>http://blog.csdn.net/AresGod/archive/2008/11/24/3364926.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/AresGod/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/AresGod/~1335038/225414632/1339759</fs:itemid></item></channel></rss>