<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : IsUnicodeFile function is validate??</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : IsUnicodeFile function is validate??]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 21 May 2026 06:02:17 +0000</pubDate>
  <lastBuildDate>Wed, 11 Jun 2008 20:29:16 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=10988</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[IsUnicodeFile function is validate?? : hm~~!  the example(case1, case2)...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10988&amp;PID=36591&amp;title=isunicodefile-function-is-validate#36591</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2624">yayo</a><br /><strong>Subject:</strong> 10988<br /><strong>Posted:</strong> 11 June 2008 at 8:29pm<br /><br />hm~~! <DIV></DIV>the example(case1, case2) is my modified test code. <DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 11 Jun 2008 20:29:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10988&amp;PID=36591&amp;title=isunicodefile-function-is-validate#36591</guid>
  </item> 
  <item>
   <title><![CDATA[IsUnicodeFile function is validate?? :  uploads/20080611_041206_test.zip  test...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10988&amp;PID=36540&amp;title=isunicodefile-function-is-validate#36540</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2624">yayo</a><br /><strong>Subject:</strong> 10988<br /><strong>Posted:</strong> 11 June 2008 at 4:15am<br /><br /><a href="https://forum.codejock.com/uploads/20080611_041206_test.zip" target="_blank"><DIV>uploads/20080611_041206_test.zip</A></DIV><DIV>&nbsp;</DIV><DIV>test file is general text not unicode!!</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>m_bUnicodeFileFormat = IsUnicodeFile(pFile);</DIV><DIV>&nbsp;</DIV><DIV>==&gt; unicode true return;</DIV><DIV>&nbsp;</DIV><DIV>case 1:</DIV><DIV>&nbsp;</DIV><DIV>AFX_INLINE BOOL IsUnicodeFile(CFile *pFile)<BR>{<BR>&nbsp;pFile-&gt;SeekToBegin();</DIV><DIV>&nbsp;// yayo write<BR>&nbsp;DWORD_PTR dwFileSize = (DWORD_PTR)pFile-&gt;GetLength();</DIV><DIV>&nbsp;if(dwFileSize==4) // UNICODE&#45716; &#54028;&#51068; &#49324;&#51060;&#51592;&#44032; 4&#44032; &#45208;&#50732;&#49688; &#50630;&#45796;. &#51068;&#48152; &#53581;&#49828;&#53944;&#44032; 4&#48148;&#51060;&#53944;&#51068;&#46412; &#50976;&#45768;&#53076;&#46300;&#47196; &#52712;&#44553;&#46108;&#45796; &#51452;&#51032;&#54616;&#44600; <BR>&nbsp;&nbsp;return FALSE;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>case 2:</DIV><DIV>&nbsp;</DIV><DIV>AFX_INLINE BOOL _IsUnicodeFile_heuristic(CFile *pFile)<BR>{<BR>&nbsp;...</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;if (uDataXcount &lt; 10)<BR>&nbsp;{<BR>&nbsp;&nbsp;// yayo write&nbsp;UNICODE &#44160;&#52636; &#55192;&#46308;&#45796;. <BR>&nbsp;&nbsp;//return nVariation0 &gt; nVariation1 || nSmallNumbers1;<BR>&nbsp;&nbsp;BOOL bUncode = nVariation0 &gt; nVariation1 || nSmallNumbers1;<BR>&nbsp;&nbsp;if(bUncode&amp;&amp;IsTextUnicode((void*)arData, cnBufferSize, NULL))<BR>&nbsp;&nbsp;&nbsp;return TRUE;</DIV><DIV>&nbsp;&nbsp;return FALSE;<BR>&nbsp;}</DIV><DIV>&nbsp;...</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 11 Jun 2008 04:15:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10988&amp;PID=36540&amp;title=isunicodefile-function-is-validate#36540</guid>
  </item> 
 </channel>
</rss>