{"id":2433,"date":"2015-05-13T21:29:49","date_gmt":"2015-05-13T13:29:49","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=2433"},"modified":"2015-05-13T21:29:49","modified_gmt":"2015-05-13T13:29:49","slug":"qstring-%e5%a2%9e%e5%8a%a0-decodetext-%e5%87%bd%e6%95%b0%e5%b9%b6%e4%bf%ae%e6%94%b9%e4%ba%86-tqptr-%e7%9a%84%e5%ae%9e%e7%8e%b0%ef%bc%8c%e5%85%b1%e4%ba%ab%e5%90%8c%e4%b8%80%e4%ba%8b%e4%bb%b6%e5%93%8d","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=2433","title":{"rendered":"QString \u589e\u52a0 DecodeText \u51fd\u6570\u5e76\u4fee\u6539\u4e86 TQPtr \u7684\u5b9e\u73b0\uff0c\u5171\u4eab\u540c\u4e00\u4e8b\u4ef6\u54cd\u5e94\u53d8\u91cf"},"content":{"rendered":"<h4>\u3010\u66f4\u65b0\u8bf4\u660e\u3011<\/h4>\n<p>* \u4fee\u6539 TQPtr \u7684\u5b9e\u73b0\uff0c\u5c06\u533f\u540d\u91ca\u653e\u4e8b\u4ef6\u548c\u666e\u901a\u7684\u4e8b\u4ef6\u4f7f\u7528\u540c\u4e00\u4e2a\u53d8\u91cf\uff0c\u8fd9\u6837\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u5f00\u9500<br \/>\n+ \u589e\u52a0 DecodeText \u51fd\u6570\u4ece\u5185\u5b58\u4e2d\u76f4\u63a5\u68c0\u6d4b\u7f16\u7801\u5e76\u8fd4\u56deUnicode\u7f16\u7801\u7684\u5b57\u7b26\u4e32\uff0c\u4e0b\u9762\u662f\u5176\u68c0\u6d4b\u7684\u539f\u5219\uff1a<\/p>\n<ol>\n<li>\u5982\u679c\u5b57\u7b26\u4e32\u4ee5 BOM \u7f16\u7801\u5f00\u5934\uff0c\u5219\u6839\u636e BOM \u786e\u5b9a\u5b57\u7b26\u4e32\u7684\u7f16\u7801\uff1b<\/li>\n<li>\u5982\u679c\u5b57\u7b26\u4e32\u6ca1\u6709\u4ee5 BOM \u5f00\u5934\uff0c\u5219\u6839\u636e\u4e0b\u8ff0\u89c4\u5219\u6765\u5224\u5b9a\u5176\u7f16\u7801\uff1a\n<ul>\n<li>\u5982\u679c\u5b57\u7b26\u4e32\u4e2d\u51fa\u73b0 Utf-8 \u5e8f\u5217\uff0c\u5219\u663e\u793a\u7f16\u7801\u662f UTF-8\uff1b<\/li>\n<li>\u5982\u679c\u5b57\u7b26\u4e2d\u51fa\u73b0\u82f1\u6587\u5b57\u7b26\uff0c\u5219\u5b57\u7b26\u7684\u524d\u4e00\u4e2a\u4f4d\u7f6e\u4e3a0\uff0c\u5219\u7f16\u7801\u4e3aUnicode 16 BE\uff1b\u53cd\u8fc7\u6765\uff0c\u5982\u679c\u5b57\u7b26\u7684\u4e0b\u4e00\u4e2a\u4f4d\u7f6e\u662f0\uff0c\u5219\u7f16\u7801\u4e3a Unicode 16 LE\uff1b<\/li>\n<li>\u6392\u9664\u4e0a\u9762\u4e24\u79cd\u60c5\u51b5\uff0c\u5219\u5b57\u7b26\u4e32\u7684\u7f16\u7801\u89c4\u5219\u4e3a ANSI \u7f16\u7801\uff0c\u4e5f\u5c31\u662f GBK\/GB2302 \u7f16\u7801<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u5927\u5bb6\u53ef\u4ee5\u770b\u5230\uff0c\u5728\u6ca1\u6709 BOM \u7684\u60c5\u51b5\uff0c\u5224\u65ad\u89c4\u5219\u5e76\u4e0d\u80fd\u6db5\u76d6\u6240\u6709\u7684\u5185\u5bb9\uff0c\u6240\u4ee5\u5982\u679c\u60a8\u80fd\u660e\u786e\u77e5\u9053\u5b57\u7b26\u7684\u7f16\u7801\u96c6\u65f6\uff0c\u6700\u597d\u4eba\u4e3a\u4f20\u9012\u7f16\u7801\uff0c\u4ee5\u4fdd\u8bc1\u6d4b\u8bd5\u7ed3\u679c\u7684\u6b63\u786e\u3002<\/p>\n<h4>\u3010\u66f4\u65b0\u7ea7\u522b\u3011<\/h4>\n<p>\u53ef\u9009<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u66f4\u65b0\u8bf4\u660e\u3011 * \u4fee\u6539 TQPtr \u7684\u5b9e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[],"class_list":["post-2433","post","type-post","status-publish","format-standard","hentry","category-delphi"],"views":2375,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2433"}],"version-history":[{"count":2,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2433\/revisions"}],"predecessor-version":[{"id":2443,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2433\/revisions\/2443"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}