<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: 轉換 BIG5、GB2312、UTF-8、Unicode 與 wchar_t</title>
	<atom:link href="http://www.jeffhung.net/blog/articles/jeffhung/261/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeffhung.net/blog/articles/jeffhung/261/</link>
	<description>(My smile insists of having nose. :-)</description>
	<pubDate>Wed, 20 Aug 2008 09:50:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1-alpha</generator>
		<item>
		<title>By: 农民</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/261/#comment-94249</link>
		<dc:creator>农民</dc:creator>
		<pubDate>Wed, 14 May 2008 17:31:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.idv.tw/blog/?p=261#comment-94249</guid>
		<description>好文章，收藏一下</description>
		<content:encoded><![CDATA[<p>好文章，收藏一下</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeffhung</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/261/#comment-8934</link>
		<dc:creator>jeffhung</dc:creator>
		<pubDate>Mon, 25 Sep 2006 04:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.idv.tw/blog/?p=261#comment-8934</guid>
		<description>&lt;p&gt;arphen,&lt;/p&gt;
&lt;p&gt;請問您想要從 UTF-8 轉成 big5/cp950 還是從從 big5/cp950 轉成 UTF-8？這幾個字只有在 Unicode (UTF-8) 裡才有，big5/cp950 裡面沒有，所以無法轉換。&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>arphen,</p>
<p>請問您想要從 UTF-8 轉成 big5/cp950 還是從從 big5/cp950 轉成 UTF-8？這幾個字只有在 Unicode (UTF-8) 裡才有，big5/cp950 裡面沒有，所以無法轉換。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arphen</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/261/#comment-8812</link>
		<dc:creator>arphen</dc:creator>
		<pubDate>Fri, 22 Sep 2006 08:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.idv.tw/blog/?p=261#comment-8812</guid>
		<description>請教要如何用iconv()轉下列幾個字為UTF-8？（綉、琼、椀）

ps. 試了BIG5, CP950都不行</description>
		<content:encoded><![CDATA[<p>請教要如何用iconv()轉下列幾個字為UTF-8？（綉、琼、椀）</p>
<p>ps. 試了BIG5, CP950都不行</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JeffHung.Blog &#187; How bad wide character/string support in FreeBSD 4 is</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/261/#comment-295</link>
		<dc:creator>JeffHung.Blog &#187; How bad wide character/string support in FreeBSD 4 is</dc:creator>
		<pubDate>Thu, 06 Oct 2005 10:17:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.idv.tw/blog/?p=261#comment-295</guid>
		<description>[...] 我總說，FreeBSD 5 比 FreeBSD 4 好很多，因為 wide character/string support 在 FreeBSD 4 上，根本就是殘廢狀態。但到底差了多少呢？我一直也都說不上來。今天看到 ijliao&#8217;s blog 的這篇《FreeBSD 官方網頁改版》，跑去參訪了一下新版的 FreeBSD.org，結果逛到 FreeBSD C99 and POSIX® Conformance Project，從最後一個表「Wide Character/String Support」裡，終於知道 FreeBSD 4 的 wide character/string support，到底有多殘廢。看著整排的 N/A，心中不禁感嘆，還好我在一年前就毅然決然地 migrate 到 FreeBSD 5 了，要不然開著殘廢破車寫一大堆需要 i18n 的程式，肯定痛苦要死。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 我總說，FreeBSD 5 比 FreeBSD 4 好很多，因為 wide character/string support 在 FreeBSD 4 上，根本就是殘廢狀態。但到底差了多少呢？我一直也都說不上來。今天看到 ijliao&#8217;s blog 的這篇《FreeBSD 官方網頁改版》，跑去參訪了一下新版的 FreeBSD.org，結果逛到 FreeBSD C99 and POSIX® Conformance Project，從最後一個表「Wide Character/String Support」裡，終於知道 FreeBSD 4 的 wide character/string support，到底有多殘廢。看著整排的 N/A，心中不禁感嘆，還好我在一年前就毅然決然地 migrate 到 FreeBSD 5 了，要不然開著殘廢破車寫一大堆需要 i18n 的程式，肯定痛苦要死。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeffhung</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/261/#comment-247</link>
		<dc:creator>jeffhung</dc:creator>
		<pubDate>Thu, 08 Sep 2005 03:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.idv.tw/blog/?p=261#comment-247</guid>
		<description>
這... shinemen 是不是寫錯了啊？</description>
		<content:encoded><![CDATA[<p>這... shinemen 是不是寫錯了啊？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shinemen</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/261/#comment-246</link>
		<dc:creator>shinemen</dc:creator>
		<pubDate>Thu, 08 Sep 2005 01:44:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.idv.tw/blog/?p=261#comment-246</guid>
		<description>一个将UTF－8码转换为GB2312的实例：#include &#34;stdafx.h&#34;#include &#60;windows.h&#62;
 
int _tmain(int argc, _TCHAR* argv[])
{
 WCHAR lsWideChar[10] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
 char lsChar[10] = {0xE6, 0xB5, 0x8B, 0xE8, 0xAF, 0x95, 0x30, 0x31, 0x32, 0x00};
// memcpy(lsWideChar, lsChar, sizeof lsChar);
 char lsMultiByte[20] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
// char lsMultiByte[20] = {0xb2, 0xe2, 0xca, 0xd4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; char *lpStr = &#34;测试123&#34;;
 DWORD lwWord;//先将UTF－8转换为WideChar
    if (MultiByteToWideChar( CP_UTF8, 0, lsChar, 10,
        lsWideChar, 10) == 0)
 {
  lwWord = GetLastError();
 }//再将WideChar转换为MultiByte  WideCharToMultiByte( CP_ACP, 0, lsWideChar, -1,
        lsMultiByte, 256, NULL, NULL );
 return 0;
}</description>
		<content:encoded><![CDATA[<p>一个将UTF－8码转换为GB2312的实例：#include &quot;stdafx.h&quot;#include &lt;windows.h&gt;<br />
 <br />
int _tmain(int argc, _TCHAR* argv[])<br />
{<br />
 WCHAR lsWideChar[10] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};<br />
 char lsChar[10] = {0xE6, 0xB5, 0x8B, 0xE8, 0xAF, 0x95, 0x30, 0x31, 0x32, 0x00};<br />
// memcpy(lsWideChar, lsChar, sizeof lsChar);<br />
 char lsMultiByte[20] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};<br />
// char lsMultiByte[20] = {0xb2, 0xe2, 0xca, 0xd4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; char *lpStr = &quot;测试123&quot;;<br />
 DWORD lwWord;//先将UTF－8转换为WideChar<br />
    if (MultiByteToWideChar( CP_UTF8, 0, lsChar, 10,<br />
        lsWideChar, 10) == 0)<br />
 {<br />
  lwWord = GetLastError();<br />
 }//再将WideChar转换为MultiByte  WideCharToMultiByte( CP_ACP, 0, lsWideChar, -1,<br />
        lsMultiByte, 256, NULL, NULL );<br />
 return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeffhung</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/261/#comment-218</link>
		<dc:creator>jeffhung</dc:creator>
		<pubDate>Thu, 18 Aug 2005 05:24:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.idv.tw/blog/?p=261#comment-218</guid>
		<description>後來發現，是 &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=iconv" rel="nofollow"&gt;iconv&lt;/a&gt; 的 BIG5 這個 encoding 不認得那七個擴充字，改用 &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=iconv" rel="nofollow"&gt;iconv&lt;/a&gt; 的 CP950 這個 encoding 即可。</description>
		<content:encoded><![CDATA[<p>後來發現，是 <a href="http://www.freebsd.org/cgi/man.cgi?query=iconv" rel="nofollow">iconv</a> 的 BIG5 這個 encoding 不認得那七個擴充字，改用 <a href="http://www.freebsd.org/cgi/man.cgi?query=iconv" rel="nofollow">iconv</a> 的 CP950 這個 encoding 即可。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 菩提樹下說書人</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/261/#comment-30080</link>
		<dc:creator>菩提樹下說書人</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.idv.tw/blog/?p=261#comment-30080</guid>
		<description>為了解決這種情況，所以必須使用wide-character專用的function以及library，像是量測字串長度就必須改用wcslen()之類的function。  reference：  big-endian, little-endian  轉換 BIG5、GB2312、UTF-8、Unicode 與 wchar_t  寬字符標量L"xx"在VC6.0/7.0和GNU g++中的不同實現 </description>
		<content:encoded><![CDATA[<p>為了解決這種情況，所以必須使用wide-character專用的function以及library，像是量測字串長度就必須改用wcslen()之類的function。  reference：  big-endian, little-endian  轉換 BIG5、GB2312、UTF-8、Unicode 與 wchar_t  寬字符標量L"xx"在VC6.0/7.0和GNU g++中的不同實現</p>
]]></content:encoded>
	</item>
	<item>
		<title>By:  蚂蚁的天空II － 工作、生活和梦想 - 博客.CN[blogger.cn/blog/中国/china]</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/261/#comment-30081</link>
		<dc:creator> 蚂蚁的天空II － 工作、生活和梦想 - 博客.CN[blogger.cn/blog/中国/china]</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.idv.tw/blog/?p=261#comment-30081</guid>
		<description>   2006-6-27  为什么要用utf-8 # 轉換 BIG5、GB2312、UTF-8、Unicode 與 wchar_t # 百度搜索帮助中心-空间帮助 # Google和MSN域名遭劫 可能是万网竞争对手所为 # Blog搜索引擎简单比较 # debug # 字体的市场 # pt, px, DPI: 关于长度单位的误解</description>
		<content:encoded><![CDATA[<p>2006-6-27  为什么要用utf-8 # 轉換 BIG5、GB2312、UTF-8、Unicode 與 wchar_t # 百度搜索帮助中心-空间帮助 # Google和MSN域名遭劫 可能是万网竞争对手所为 # Blog搜索引擎简单比较 # debug # 字体的市场 # pt, px, DPI: 关于长度单位的误解</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 不分享空間</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/261/#comment-70818</link>
		<dc:creator>不分享空間</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.idv.tw/blog/?p=261#comment-70818</guid>
		<description>http://www.jeffhung.net/blog/articles/jeffhung/261/</description>
		<content:encoded><![CDATA[<p><a href="http://www.jeffhung.net/blog/articles/jeffhung/261/" rel="nofollow">http://www.jeffhung.net/blog/articles/jeffhung/261/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
