{"id":1025,"date":"2004-02-24T00:28:12","date_gmt":"2004-02-24T00:28:12","guid":{"rendered":"http:\/\/dev.jblove.net\/?p=1025"},"modified":"2004-02-24T00:28:12","modified_gmt":"2004-02-24T00:28:12","slug":"%ed%95%9c%ea%b8%80%ec%98%81%ed%83%80%eb%a5%bc-%ed%95%9c%ea%b8%80%eb%a1%9c","status":"publish","type":"post","link":"https:\/\/jblove.net\/?p=1025","title":{"rendered":"\ud55c\uae00\uc601\ud0c0\ub97c \ud55c\uae00\ub85c&#8230;"},"content":{"rendered":"<p>\n\uae30\uc220\uc801\uc778 \uac70&#8230;\uc5d0 \ud2b9\ubcc4\ud55c\uac8c \uc800\ud55c\ud14c \uc788\uc744\ub9ac\ub294 \uc5c6\uad6c\uc694&#8230; ^^;;<br \/>\n\ub298 \uadf8\ub807\ub4ef\uc774 \ub9c9\ucf54\ub529\uc758 \uc0b0\ubb3c\uc785\ub2c8\ub2e4.<\/p>\n<p>&#8220;\uc548\ub155\ud558\uc138\uc694?&#8221; \ub97c &#8220;dkssudgktpdy?&#8221; \ub85c \ucce4\uc744\ub54c \uadf8\uac78 \ucd9c\ub825\ud574\uc8fc\ub294\uac70\uc8e0;;<br \/>\n\ud604\uc7ac \uc708\ub3c4\uc6b0\uc988\uc5d0\uc11c \uc4f0\ub294 CP949 \ud639\uc740 UHC\ub77c \ubd88\ub9ac\ub294 \ud655\uc7a5\uc644\uc131\ud615\uc73c\ub85c\ub294 \uc790\ubaa8\ubd84\ub9ac\ub97c \ud560 \uc218 \uc5c6\uc5b4\uc11c \uc720\ub2c8\ucf54\ub4dc\ub97c \uc774\uc6a9\ud588\uc2b5\ub2c8\ub2e4. UTF-8\uc740 \uc544\ub2c8\uace0, UCS-2 \ub77c \ubd88\ub9ac\ub294 Unicode 2.0 \uccb4\uacc4\uc785\ub2c8\ub2e4.<\/p>\n<p>\uc6d0\ub9ac\ubd80\ud130 \uac04\ub2e8\ud788 \uc124\uba85\uc744 \ub4dc\ub9ac\uba74&#8230;<\/p>\n<p>\uc720\ub2c8\ucf54\ub4dc\uc5d0 \uc4f0\uc774\ub294 \ud55c\uae00 \ucd08\uc131\uc740 \uc21c\uc11c\ub300\ub85c&#8230;<br \/>\n\u3131\u3132\u3134\u3137\u3138\u3139\u3141\u3142\u3143\u3145\u3146\u3147\u3148\u3149\u314a\u314b\u314c\u314d\u314e<\/p>\n<p>\uc911\uc131\uc740&#8230;<br \/>\n\u314f\u3150\u3151\u3152\u3153\u3154\u3155\u3156\u3157\u3158\u3159\u315a\u315b\u315c\u315d\u315e\u315f\u3160\u3161\u3162\u3163<\/p>\n<p>\uc885\uc131\uc740&#8230;<br \/>\n\uc5c6\uc74c \u3131\u3132\u3133\u3134\u3135\u3136\u3137\u3139\u313a\u313b\u313c\u313d\u313e\u313f\u3140\u3141\u3142\u3144\u3145\u3146\u3147\u3148\u314a\u314b\u314c\u314d\u314e<\/p>\n<p>\uc758 \uc21c\uc11c\uc785\ub2c8\ub2e4.<br \/>\n\uc774\uc81c \uae00\uc790\ub97c \uc870\ud569\ud574\uc11c \ucf54\ub4dc\ub97c \ub9cc\ub4e4\uba74&#8230;<br \/>\n\ucf54\ub4dc = 0xAC00 + \ucd08\uc131\uc21c\uc11c\ubc88\ud638(0\ubc88\ubd80\ud130)*\uc911\uc131\uac2f\uc218*\uc885\uc131\uac2f\uc218 + \uc911\uc131\uc21c\uc11c\ubc88\ud638*\uc885\uc131\uac2f\uc218 + \uc885\uc131\uc21c\uc11c\ubc88\ud638<br \/>\n\uac00 \ub429\ub2c8\ub2e4. \ubb50&#8230; \uc774 \uc815\ub3c4\uc758 \uc815\ubcf4\ub9cc \uc788\uc73c\uba74 \ub204\uad6c\ub098 \ub9cc\ub4dc\uc2e4 \uc218 \uc788\uaca0\uc9c0\ub9cc&#8230; \uc758\uc678\ub85c \uc720\ub2c8\ucf54\ub4dc\uc5d0 \ub300\ud55c \uc815\ubcf4\uac00 \uba85\ud655\ud558\uac8c \uc815\uc758\ub41c \uac78 \ucc3e\uae30\uac00 \ud798\ub4e4\uc5b4\uc11c(\ubc29\ub300\ud574\uc11c \uadf8\ub7f4\uc218\ub3c4) \uc800 \ub098\ub984\ub300\ub85c\ub294 \uaf64 \uace0\uc0dd\ud558\uba70 \ub9cc\ub4e4\uc5c8\uc2b5\ub2c8\ub2e4. \uae30\ub2a5 \uad6c\ud604\uc774 \uc6b0\uc120\uc774\ub77c \ud568\uc218\uac00 \uae54\ub054\ud558\uc9c0 \ubabb\ud558\ub124\uc694. \uc870\uae08 \ub354 \uae54\ub054\ud558\uac8c \ud574\uc8fc\uc2dc\uba74 \uac10\uc0ac\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ud83d\ude42<\/p>\n<p>\uc544&#8230; \ub2e4\ub4e4 \uc544\uc2dc\uaca0\uc9c0\ub9cc&#8230; \ub9c8\uc9c0\ub9c9\uc758 iconv \ud568\uc218\ubd80\ubd84\uc5d0\uc11c UTF-8 \ub300\uc2e0\uc5d0 CP949\ub97c \uc801\uc73c\uc2dc\uba74 \ud655\uc7a5\uc644\uc131\ud615 \ud615\ud0dc\uc758 \uacb0\uacfc\ubb3c\ub610\ud55c \uc5bb\uc73c\uc2e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4. (EUC-KR\uc740 \uae00\uc790\uc218\uac00 \uc870\ud569\ud615 \ubc0f \uc720\ub2c8\ucf54\ub4dc\uc758 \uc808\ubc18\ub3c4 \uc548\ub429\ub2c8\ub2e4. -_-)<\/p>\n<p>function eng2han ($str)<br \/>\n{<br \/>\n        static $convTable = null;<br \/>\n        if (is_null($convTable))<br \/>\n        {<br \/>\n                \/\/ \ucd08\uc131<br \/>\n                $convTable[] = array(&#8216;r&#8217;=>0, &#8216;R&#8217;=>1, &#8216;s&#8217;=>2, &#8216;e&#8217;=>3, &#8216;E&#8217;=>4, &#8216;f&#8217;=>5, &#8216;a&#8217;=>6, &#8216;q&#8217;=>7, &#8216;Q&#8217;=>8, &#8216;t&#8217;=>9, &#8216;T&#8217;=>10, &#8216;d&#8217;=>11, &#8216;w&#8217;=>12, &#8216;W&#8217;=>13, &#8216;c&#8217;=>14, &#8216;z&#8217;=>15, &#8216;x&#8217;=>16, &#8216;v&#8217;=>17, &#8216;g&#8217;=>18);<\/p>\n<p>                \/\/ \uc911\uc131<br \/>\n                $convTable[] = array(&#8216;k&#8217;=>0, &#8216;o&#8217;=>1, &#8216;i&#8217;=>2, &#8216;O&#8217;=>3, &#8216;j&#8217;=>4, &#8216;p&#8217;=>5, &#8216;u&#8217;=>6, &#8216;P&#8217;=>7, &#8216;h&#8217;=>8, &#8216;hk&#8217;=>9, &#8216;ho&#8217;=>10, &#8216;hl&#8217;=>11, &#8216;y&#8217;=>12, &#8216;n&#8217;=>13, &#8216;nj&#8217;=>14, &#8216;np&#8217;=>15, &#8216;nl&#8217;=>16, &#8216;b&#8217;=>17, &#8216;m&#8217;=> 18, &#8216;ml&#8217;=>19, &#8216;l&#8217;=>20);<\/p>\n<p>                \/\/ \uc885\uc131<br \/>\n                $convTable[] = array(&#8216;r&#8217;=>1, &#8216;R&#8217;=>2, &#8216;rt&#8217;=>3, &#8216;s&#8217;=>4, &#8216;sw&#8217;=>5, &#8216;sg&#8217;=>6, &#8216;e&#8217;=>7, &#8216;f&#8217;=>8, &#8216;fr&#8217;=>9, &#8216;fa&#8217;=>10, &#8216;fq&#8217;=>11, &#8216;ft&#8217;=>12, &#8216;fx&#8217;=>13, &#8216;fv&#8217;=>14, &#8216;fg&#8217;=>15, &#8216;a&#8217;=>16, &#8216;q&#8217;=>17, &#8216;qt&#8217;=>18, &#8216;t&#8217;=>19, &#8216;T&#8217;=>20, &#8216;d&#8217;=>21, &#8216;w&#8217;=>22, &#8216;c&#8217;=>23, &#8216;z&#8217;=>24, &#8216;x&#8217;=>25, &#8216;v&#8217;=>26, &#8216;g&#8217;=>27);<br \/>\n        }<\/p>\n<p>        $retText = array(); $hanChar = &#8221;;<br \/>\n        $len = strlen($str);<br \/>\n        for ($idx = 0; $idx < $len; $idx++)<br \/>\n        {<br \/>\n                if ( is_numeric($convTable[0][$str[$idx]]) )<br \/>\n                {<br \/>\n                        \/\/ \ucd08\uc131<br \/>\n                        $hanChar = 0xAC00 + $convTable[0][$str[$idx]]*21*28;<br \/>\n                        $idx++;<\/p>\n<p>                        \/\/ \uc911\uc131<br \/>\n                        if ( $convTable[1][$str[$idx].$str[$idx+1]] ) {<br \/>\n                                $hanChar += $convTable[1][$str[$idx].$str[$idx+1]]*28;<br \/>\n                                $idx+=2;<br \/>\n                        } elseif ( is_numeric($convTable[1][$str[$idx]]) ) {<br \/>\n                                $hanChar += $convTable[1][$str[$idx]]*28;<br \/>\n                                $idx++;<br \/>\n                        }<\/p>\n<p>                        \/\/ \uc885\uc131<br \/>\n                        if ( $convTable[2][$str[$idx].$str[$idx+1]] &#038;&#038; (!is_numeric($convTable[1][$str[$idx+2]]) || $idx+2 >= $len) ) {<br \/>\n                                $hanChar += $convTable[2][$str[$idx].$str[$idx+1]];<br \/>\n                                $idx++;<br \/>\n                        } elseif ( $convTable[2][$str[$idx]] &#038;&#038; (!is_numeric($convTable[1][$str[$idx+1]]) || $idx+1 >= $len) ) {<br \/>\n                                $hanChar += $convTable[2][$str[$idx]];<br \/>\n                        } else {<br \/>\n                                $idx&#8211;;<br \/>\n                        }<\/p>\n<p>                        $hanChar = dechex($hanChar);<br \/>\n                        $hanChar = iconv(&#8220;UCS-2&#8221;, &#8220;UTF-8&#8221;, chr(hexdec(substr($hanChar, 0, 2))).chr(hexdec(substr($hanChar, -2))));<\/p>\n<p>                        $retText[] = $hanChar;<br \/>\n                }<br \/>\n                else<br \/>\n                {<br \/>\n                        $retText[] = $str[$idx];<br \/>\n                        continue;<br \/>\n                }<br \/>\n        }<\/p>\n<p>        return implode(&#8221;, $retText);<br \/>\n}<\/p>\n<p>\ud14c\uc2a4\ud2b8<br \/>\necho eng2han(&#8216;dkssudgktpdy?&#8217;);<\/p>\n<p>\uacb0\uacfc<br \/>\n\uc548\ub155\ud558\uc138\uc694? <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uae30\uc220\uc801\uc778 \uac70&#8230;\uc5d0 \ud2b9\ubcc4\ud55c\uac8c \uc800\ud55c\ud14c \uc788\uc744\ub9ac\ub294 \uc5c6\uad6c\uc694&#8230; ^^;; \ub298 \uadf8\ub807\ub4ef\uc774 \ub9c9\ucf54\ub529\uc758 \uc0b0\ubb3c\uc785\ub2c8\ub2e4. &#8220;\uc548\ub155\ud558\uc138\uc694?&#8221; \ub97c &#8220;dkssudgktpdy?&#8221; \ub85c \ucce4\uc744\ub54c \uadf8\uac78 \ucd9c\ub825\ud574\uc8fc\ub294\uac70\uc8e0;; \ud604\uc7ac \uc708\ub3c4\uc6b0\uc988\uc5d0\uc11c \uc4f0\ub294 CP949 \ud639\uc740 UHC\ub77c \ubd88\ub9ac\ub294 \ud655\uc7a5\uc644\uc131\ud615\uc73c\ub85c\ub294 \uc790\ubaa8\ubd84\ub9ac\ub97c \ud560 \uc218 \uc5c6\uc5b4\uc11c \uc720\ub2c8\ucf54\ub4dc\ub97c \uc774\uc6a9\ud588\uc2b5\ub2c8\ub2e4. UTF-8\uc740 \uc544\ub2c8\uace0, UCS-2 \ub77c \ubd88\ub9ac\ub294 Unicode 2.0 \uccb4\uacc4\uc785\ub2c8\ub2e4. \uc6d0\ub9ac\ubd80\ud130 \uac04\ub2e8\ud788 \uc124\uba85\uc744 \ub4dc\ub9ac\uba74&#8230; \uc720\ub2c8\ucf54\ub4dc\uc5d0 \uc4f0\uc774\ub294 \ud55c\uae00 \ucd08\uc131\uc740 \uc21c\uc11c\ub300\ub85c&#8230; \u3131\u3132\u3134\u3137\u3138\u3139\u3141\u3142\u3143\u3145\u3146\u3147\u3148\u3149\u314a\u314b\u314c\u314d\u314e \uc911\uc131\uc740&#8230; \u314f\u3150\u3151\u3152\u3153\u3154\u3155\u3156\u3157\u3158\u3159\u315a\u315b\u315c\u315d\u315e\u315f\u3160\u3161\u3162\u3163 \uc885\uc131\uc740&#8230; \uc5c6\uc74c \u3131\u3132\u3133\u3134\u3135\u3136\u3137\u3139\u313a\u313b\u313c\u313d\u313e\u313f\u3140\u3141\u3142\u3144\u3145\u3146\u3147\u3148\u314a\u314b\u314c\u314d\u314e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[51],"tags":[],"class_list":["post-1025","post","type-post","status-publish","format-standard","hentry","category-papa-php"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/1025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1025"}],"version-history":[{"count":0,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/1025\/revisions"}],"wp:attachment":[{"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}