{"id":21314,"date":"2024-11-19T16:06:36","date_gmt":"2024-11-19T08:06:36","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21314\/"},"modified":"2024-11-19T16:06:36","modified_gmt":"2024-11-19T08:06:36","slug":"vscode%e6%b2%a1%e6%9c%89gbk%e7%bc%96%e7%a0%81%e6%80%8e%e4%b9%88%e5%8a%9e","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21314\/","title":{"rendered":"vscode\u6ca1\u6709gbk\u7f16\u7801\u600e\u4e48\u529e"},"content":{"rendered":"<blockquote><p>\n  \u5982\u4f55\u5728 vscode \u4e2d\u6dfb\u52a0 gbk \u7f16\u7801\u652f\u6301\uff1f\u901a\u8fc7\u5b89\u88c5 gbk \u7f16\u7801\u6269\u5c55\u3001\u914d\u7f6e vscode \u8bbe\u7f6e\u5e76\u91cd\u542f\uff0c\u5373\u53ef\u4e3a vscode \u6dfb\u52a0 gbk \u7f16\u7801\u652f\u6301\u3002\u4fdd\u5b58\u6587\u4ef6\u65f6\uff0cvscode \u5c06\u81ea\u52a8\u5c06\u5185\u5bb9\u7f16\u7801\u4e3a gbk\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/15\/2024051508271633127.jpg\" class=\"aligncenter\" title=\"vscode\u6ca1\u6709gbk\u7f16\u7801\u600e\u4e48\u529e\u63d2\u56fe\" alt=\"vscode\u6ca1\u6709gbk\u7f16\u7801\u600e\u4e48\u529e\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 VSCode \u4e2d\u6dfb\u52a0 GBK \u7f16\u7801\u652f\u6301<\/strong><\/p>\n<p><strong>\u95ee\u9898\uff1a<\/strong>\u5982\u4f55\u5728 VSCode \u4e2d\u6dfb\u52a0 GBK \u7f16\u7801\u652f\u6301\uff1f<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong><\/p>\n<p>\u8981\u4e3a VSCode \u6dfb\u52a0 GBK \u7f16\u7801\u652f\u6301\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li> <strong>\u5b89\u88c5 GBK \u7f16\u7801\u6269\u5c55\uff1a<\/strong>\u901a\u8fc7 VSCode \u7684\u6269\u5c55\u5e02\u573a\u641c\u7d22\u5e76\u5b89\u88c5\u201cGB18030\uff08GBK\uff09\u201d\u6269\u5c55\u3002<\/li>\n<li>\n<p><strong>\u914d\u7f6e VSCode\uff1a<\/strong><\/p>\n<ul>\n<li>\u70b9\u51fb\u201c\u6587\u4ef6\u201d\u83dc\u5355\uff0c\u7136\u540e\u9009\u62e9\u201c\u9996\u9009\u9879\u201d&gt;\u201c\u8bbe\u7f6e\u201d\u3002<\/li>\n<li>\u5728\u641c\u7d22\u680f\u4e2d\u8f93\u5165\u201cencoding\u201d\uff0c\u7136\u540e\u627e\u5230\u201cFiles\uff1aDefault Encoding\u201d\u3002<\/li>\n<li>\u4ece\u4e0b\u62c9\u5217\u8868\u4e2d\u9009\u62e9\u201cGBK\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<li> <strong>\u91cd\u542f VSCode\uff1a<\/strong>\u4e3a\u4e86\u4f7f\u66f4\u6539\u751f\u6548\uff0c\u8bf7\u91cd\u542f VSCode\u3002<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\uff1a<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00\u4e00\u4e2a\u73b0\u6709\u6587\u672c\u6587\u4ef6\u6216\u521b\u5efa\u65b0\u6587\u4ef6\u3002<\/li>\n<li>\u5728\u7f16\u8f91\u5668\u53f3\u4e0b\u89d2\uff0c\u9009\u62e9\u7f16\u7801\uff0c\u5b83\u73b0\u5728\u5e94\u8be5\u662f\u201cGBK\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><strong>\u6ce8\u610f\uff1a<\/strong><\/p>\n<ul>\n<li>\u60a8\u53ef\u80fd\u9700\u8981\u6839\u636e\u60a8\u7684\u9879\u76ee\u9700\u8981\u624b\u52a8\u8bbe\u7f6e\u6587\u4ef6\u7f16\u7801\u3002<\/li>\n<li>\u4fdd\u5b58\u6587\u4ef6\u65f6\uff0cVSCode \u5c06\u81ea\u52a8\u5c06\u5185\u5bb9\u7f16\u7801\u4e3a GBK\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u6ca1\u6709gbk\u7f16\u7801\u600e\u4e48\u529e\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5728 vscode \u4e2d\u6dfb\u52a0 gbk \u7f16\u7801\u652f\u6301\uff1f\u901a\u8fc7\u5b89\u88c5 gbk \u7f16\u7801\u6269\u5c55\u3001\u914d\u7f6e vscode \u8bbe\u7f6e\u5e76\u91cd\u542f\uff0c\u5373\u53ef\u4e3a vscode \u6dfb\u52a0 gbk \u7f16\u7801\u652f\u6301\u3002\u4fdd\u5b58\u6587\u4ef6\u65f6\uff0cvscode \u5c06\u81ea\u52a8\u5c06\u5185\u5bb9\u7f16\u7801\u4e3a gbk\u3002 \u5982\u4f55\u5728 VSCode \u4e2d\u6dfb\u52a0 GBK \u7f16\u7801\u652f\u6301 \u95ee\u9898\uff1a\u5982\u4f55\u5728 VSCode \u4e2d\u6dfb\u52a0 GBK \u7f16\u7801\u652f\u6301\uff1f \u89e3\u51b3\u65b9\u6cd5\uff1a \u8981\u4e3a VSCode \u6dfb\u52a0 GBK \u7f16\u7801\u652f\u6301\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a \u5b89\u88c5 GBK \u7f16\u7801\u6269\u5c55\uff1a\u901a\u8fc7 VSCode \u7684\u6269\u5c55\u5e02\u573a\u641c\u7d22\u5e76\u5b89\u88c5\u201cGB18030\uff08GBK\uff09\u201d\u6269\u5c55\u3002 \u914d\u7f6e VSCode\uff1a \u70b9\u51fb\u201c\u6587\u4ef6\u201d\u83dc\u5355\uff0c\u7136\u540e\u9009\u62e9\u201c\u9996\u9009\u9879\u201d&gt;\u201c\u8bbe\u7f6e\u201d\u3002 \u5728\u641c\u7d22\u680f\u4e2d\u8f93\u5165\u201cencoding\u201d\uff0c\u7136\u540e\u627e\u5230\u201cFiles\uff1aDefault Encoding\u201d\u3002 \u4ece\u4e0b\u62c9\u5217\u8868\u4e2d\u9009\u62e9\u201cGBK\u201d\u3002 \u91cd\u542f VSCode\uff1a\u4e3a\u4e86\u4f7f\u66f4\u6539\u751f\u6548\uff0c\u8bf7\u91cd\u542f VSCode\u3002 \u9a8c\u8bc1\uff1a \u6253\u5f00\u4e00\u4e2a\u73b0\u6709\u6587\u672c\u6587\u4ef6\u6216\u521b\u5efa\u65b0\u6587\u4ef6\u3002 \u5728\u7f16\u8f91\u5668\u53f3\u4e0b\u89d2\uff0c\u9009\u62e9\u7f16\u7801\uff0c\u5b83\u73b0\u5728\u5e94\u8be5\u662f\u201cGBK\u201d\u3002 \u6ce8\u610f\uff1a \u60a8\u53ef\u80fd\u9700\u8981\u6839\u636e\u60a8\u7684\u9879\u76ee\u9700\u8981\u624b\u52a8\u8bbe\u7f6e\u6587\u4ef6\u7f16\u7801\u3002 \u4fdd\u5b58\u6587\u4ef6\u65f6\uff0cVSCode \u5c06\u81ea\u52a8\u5c06\u5185\u5bb9\u7f16\u7801\u4e3a GBK\u3002 \u4ee5\u4e0a\u5c31\u662f\u6ca1\u6709gbk\u7f16\u7801\u600e\u4e48\u529e\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-21314","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=21314"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21314\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}