{"id":84261,"date":"2020-05-15T01:10:30","date_gmt":"2020-05-14T17:10:30","guid":{"rendered":"http:\/\/4563.org\/?p=84261"},"modified":"2020-05-15T01:10:30","modified_gmt":"2020-05-14T17:10:30","slug":"vs-%e4%bd%bf%e7%94%a8-shift-jis-%e5%8a%a0%e8%bd%bd%e6%96%87%e4%bb%b6%e6%97%b6%e6%9c%89%e4%ba%9b%e5%ad%97%e8%8a%82%e5%b7%b2%e7%94%a8-unicode-%e6%9b%bf%e6%8d%a2%e5%ad%97%e7%ac%a6%e6%9b%bf%e6%8d%a2","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=84261","title":{"rendered":"VS: \u4f7f\u7528 Shift-JIS \u52a0\u8f7d\u6587\u4ef6\u65f6\u6709\u4e9b\u5b57\u8282\u5df2\u7528 Unicode \u66ff\u6362\u5b57\u7b26\u66ff\u6362"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  VS: \u4f7f\u7528 Shift-JIS \u52a0\u8f7d\u6587\u4ef6\u65f6\u6709\u4e9b\u5b57\u8282\u5df2\u7528 Unicode \u66ff\u6362\u5b57\u7b26\u66ff\u6362               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Wonicon <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6709\u4e00\u4efd\u8bb8\u4e45\u672a\u6253\u5f00\u7684 Visual Studio 2017 \u5de5\u7a0b\uff0c\u4ee3\u7801\u91cc\u6709\u4e2d\u6587\u6ce8\u91ca\uff0c\u56e0\u4e3a\u662f\u4e2d\u6587 Windows \u73af\u5883\uff0c\u6240\u4ee5\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u6587\u4ef6\u7f16\u7801\u662f GB2312 \u5bb6\u65cf\u3002 \u671f\u95f4\u56e0\u4e3a\u7279\u6b8a\u539f\u56e0\u5c06\u6574\u4e2a\u7cfb\u7edf\u8bed\u8a00\u5207\u6362\u5230\u4e86\u65e5\u8bed\uff0c\u73b0\u5728\u53c8\u5207\u56de\u6765\u4e86\uff0cVisual Studio \u597d\u50cf\u6ca1\u6709\u7f13\u8fc7\u52b2\uff0c\u8fd8\u5728\u5c1d\u8bd5\u7528 Shift-JIS \u52a0\u8f7d\u6587\u4ef6\uff0c\u51fa\u73b0\u4e86\u6807\u9898\u6240\u793a\u7684\u62a5\u9519\u3002<\/p>\n<p>\u7f16\u7801\u95ee\u9898\uff0c\u53ea\u8981\u4e0d\u4fdd\u5b58\uff0c\u5c31\u7559\u5f97\u9752\u5c71\u5728\u3002\u4f46\u662f\u653e\u5f03\u810f\u6587\u4ef6\u518d\u7528 GB2312 \u7f16\u7801\u6253\u5f00\u540e\uff0c\u867d\u7136\u5927\u90e8\u5206\u4e2d\u6587\u6ce8\u91ca\u6062\u590d\u5982\u521d\uff0c\u4f46\u662f\u4e2a\u522b\u53e5\u5b50\u672b\u5c3e\u51fa\u73b0\u4e86\u4e71\u7801\uff0c\u540c\u65f6 VS \u63d0\u793a CRLF \u548c LF \u6df7\u7528\u3002<\/p>\n<p>\u7528 xxd \u6253\u5370\u6587\u672c\u7684\u5341\u516d\u8fdb\u5236\u8868\u793a\u540e\u9010\u4e00\u6bd4\u5bf9\uff0c\u7ec8\u4e8e\u501f\u52a9\u4e00\u4e9b\u80fd\u591f\u660e\u786e\u786e\u5b9a\u539f\u6587\u7684\u53e5\u5b50\uff0c\u53d1\u73b0\u4e86\u5b57\u8282\u4e0a\u7684\u9519\u8bef\uff1a\u6709\u4e71\u7801\u7684\u6587\u672c\u91cc\uff0c\u4e00\u5b9a\u6709 81 45 \u8fd9\u4e2a\u5b57\u8282\u4e32\uff0c\u4e14\u8fd9\u4e2a\u5b57\u8282\u4e32\u603b\u662f\u5728\u4e24\u4e2a\u53cc\u5b57\u8282\u7684\u4e2d\u95f4\u4f4d\u7f6e\u8986\u76d6\u65e7\u6570\u636e\uff0c\u5bfc\u81f4\u89e3\u7801\u8fc7\u7a0b\u51fa\u73b0\u9519\u4e71\uff0c\u53ea\u80fd\u770b\u5230 LF (0a) \u624d\u80fd\u6062\u590d\u3002<\/p>\n<p>\u4e3e\u4f8b\u6765\u8bf4\uff0c\u539f\u672c\u6ce8\u91ca\u91cc\u6709\u201c\u6307\u9488&lt;\u6362\u884c&gt;\u201d\u8fd9\u6837\u7684\u5e8f\u5217\uff0cGB2312 \u4e0b\u7684\u7f16\u7801\u5e94\u8be5\u662f\uff1a b6 d4 cf f3 0d 0a \u4f46\u662f\u73b0\u5728\u4e71\u7801\u7684\u6587\u672c\u662f\uff1a b6 d4 cf 81 45 0a<\/p>\n<p>\u5927\u91cf\u7684 &lt;CR&gt; &lt;LF&gt; \u88ab\u7834\u574f\u6210 E &lt;LF&gt;\uff0c\u4e5f\u96be\u602a VS \u4f1a\u63d0\u793a CRLF \u548c LF \u6df7\u7528\u3002<\/p>\n<p>\u5176\u4ed6\u7528 Shift-JIS \u5f3a\u884c\u6253\u5f00\u7684 GB2312 \u4ee3\u7801\u6587\u672c\u4e0d\u4fdd\u5b58\u5173\u95ed\u540e\u5e76\u6ca1\u6709\u51fa\u73b0 81 45 \u7684\u5b57\u8282\u5e8f\u5217\uff0c\u7ecf\u8fc7\u6d4b\u8bd5\u53ea\u6709\u5c06\u5f3a\u884c\u6253\u5f00\u7684\u6587\u4ef6\u8fdb\u884c\u4fdd\u5b58\u540e\u624d\u4f1a\u6709\u8fd9\u79cd\u95ee\u9898\uff0c\u770b\u6765\u6211\u4e0a\u9762\u6240\u4f7f\u7528\u7684\u4ee3\u7801\u6587\u4ef6\u5728\u53cd\u590d\u5f00\u95ed\u6362\u7f16\u7801\u7684\u65f6\u5019\u4e0d\u5c0f\u5fc3\u4fdd\u5b58\u4e86\u3002<\/p>\n<p>\u771f\u6b63\u7684\u95ee\u9898\u662f\uff0cVS \u660e\u660e\u8bf4\u662f\u7528 Unicode \u66ff\u6362\u5b57\u7b26\u66ff\u6362\uff0c\u90a3\u5e94\u8be5\u662f uFFFD\uff0c\u4e00\u4e2a\u9ed1\u5e95\u83f1\u5f62\u95ee\u53f7\uff0c81 45 \u611f\u89c9\u5e76\u4e0d\u80fd\u5728\u67d0\u4e2a\u7f16\u7801\u4e0b\u627e\u5230\u5bf9\u5e94\u7684\u5b58\u5728\uff0cUnicode \u91cc 0081 \u662f\u63a7\u5236\u5b57\u7b26\uff0c\u800c\u4e14\u6709 00. 45 \u672c\u8eab\u662f E\uff0c\u4e0d\u53ef\u80fd\u5728\u591a\u5b57\u8282\u7f16\u7801\u91cc\u4ee5\u5176\u4ed6\u542b\u4e49\u51fa\u73b0\uff0c\u6240\u4ee5\u8fd9\u66ff\u6362\u884c\u4e3a\u5b9e\u5728\u662f\u8ba9\u4eba\u56f0\u60d1\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>0<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>VS: \u4f7f\u7528 Shift-JIS &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/84261"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=84261"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/84261\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=84261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=84261"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=84261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}