{"id":24445,"date":"2026-05-05T20:12:07","date_gmt":"2026-05-05T12:12:07","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=24445"},"modified":"2026-05-05T20:13:35","modified_gmt":"2026-05-05T12:13:35","slug":"%e5%b7%a5%e5%85%b7%e6%8e%a8%e8%8d%90%ef%bc%9avisual-studio-%e5%bc%ba%e5%88%b6%e4%bf%9d%e5%ad%98-utf-8-with-bom-%e6%89%a9%e5%b1%95%e3%80%90force-utf-8%ef%bc%88with-bom%ef%bc%89%e3%80%91","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=24445","title":{"rendered":"\u5de5\u5177\u63a8\u8350\uff1aVisual Studio \u5f3a\u5236\u4fdd\u5b58 UTF-8 with BOM \u6587\u4ef6\u7f16\u7801\u6269\u5c55\u3010Force UTF-8\uff08With BOM\uff09\u3011"},"content":{"rendered":"<p>\u5728 VS \u7684<strong>\u7ba1\u7406\u6269\u5c55<\/strong>\u91cc\u53ef\u4ee5\u5b89\u88c5\uff0c\u70b9\u5b89\u88c5\u540e\uff0c\u5173\u95ed VS \u6267\u884c\u5b89\u88c5\u3002\u5b9e\u6d4b VS 2026 \u53ef\u7528\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1777983208145.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 268px; --smush-placeholder-aspect-ratio: 268\/116;\" \/><\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1777982619853.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1082px; --smush-placeholder-aspect-ratio: 1082\/293;\" \/><\/p>\n<p>\u524d\u6bb5\u65f6\u95f4\u6211\u5c31\u5410\u69fd\u8fc7\uff0cVS 2026 \u8fd9\u4e2a\u6587\u4ef6\u7f16\u7801\u6709\u6bdb\u75c5\uff1a<a href=\"https:\/\/blog.iyatt.com\/?p=24251\">https:\/\/blog.iyatt.com\/?p=24251<\/a><br \/>\n\u65b0\u5efa\u6e90\u7801\u6587\u4ef6\u9ed8\u8ba4\u662f UTF-8 (\u4e0d\u5e26BOM)\uff0c\u4f46\u662f MSVC \u7f16\u8bd1\u5668\u5b83\u4e0d\u8ba4\u8bc6\uff0c\u4f1a\u6309\u672c\u5730\u8bed\u8a00\u5904\u7406\u3002\u6211\u672c\u5730\u662f\u4e2d\u6587\u8bed\u8a00\uff0c\u5b83\u5c31\u7ed9\u6211\u7528 936 GB2312\u3002\u6e90\u7801\u6587\u4ef6\u91cc\u51fa\u73b0\u51e0\u4e2a\u4e2d\u6587\u5b57\u7684\u65f6\u5019\u6ca1\u95ee\u9898\uff0c\u4f46\u662f\u591a\u5230\u4e00\u5b9a\u5b57\u6570\u83ab\u540d\u5947\u5999\u7684\u5c31\u4f1a\u51fa\u9519\uff0c\u6211\u5199\u6ce8\u91ca\u662f\u5199\u4e2d\u6587\uff0c\u5c31\u4f1a\u89e6\u53d1\u8fd9\u4e2a\u95ee\u9898\u3002\u53ea\u6709\u628a\u6587\u4ef6\u4fdd\u5b58\u4e3a\u5e26 BOM \u7684\uff0cMSVC \u624d\u80fd\u8bc6\u522b\u5230\u5b83\u662f UTF-8\uff0c\u8fd9\u6837\u5c31\u80fd\u6b63\u5e38\u5904\u7406\u4e86\u3002<br \/>\n\u521a\u5f00\u59cb\u7684\u65f6\u5019\u6211\u8fd8\u624b\u52a8\u6539\u6587\u4ef6\u7f16\u7801\u53e6\u5b58\u4e3a\uff0c\u4f46\u662f\u540e\u9762\u8d8a\u5199\u8d8a\u591a\uff0c\u73b0\u5728\u6e90\u6587\u4ef6\u4f30\u8ba1\u90fd\u6709\u4e94\u516d\u5341\u4e2a\u4e86\uff0c\u6bcf\u6b21\u65b0\u5efa\u6587\u4ef6\u624b\u52a8\u6539\u5c31\u6709\u4e9b\u70e6\u4eba\u4e86\u3002<br \/>\n\u6211\u8bd5\u4e86\u8fd9\u4e2a\u63d2\u4ef6\u662f\u53ef\u4ee5\u5de5\u4f5c\u7684\uff0c\u65b0\u5efa\u6587\u4ef6\u51fa\u6765\u662f UTF-8\uff0c\u53ea\u8981\u6309<code class=\"kb-btn\">Ctrl<\/code>+<code class=\"kb-btn\">S<\/code>\u4fdd\u5b58\u5c31\u4f1a\u81ea\u52a8\u6539\u4e3a UTF-8 with BOM\uff0c\u53ef\u80fd\u7f16\u8f91\u5668\u53f3\u4e0b\u89d2\u7684\u6587\u4ef6\u7f16\u7801\u4e0d\u4f1a\u81ea\u52a8\u5237\u65b0\uff0c\u4f46\u662f\u5b9e\u9645\u5df2\u7ecf\u6539\u4e86\uff0c\u91cd\u65b0\u6253\u5f00\u6587\u4ef6\u5c31\u80fd\u770b\u5230\u65b0\u72b6\u6001\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1777983121338.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 344px; --smush-placeholder-aspect-ratio: 344\/157;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 VS \u7684\u7ba1\u7406\u6269\u5c55\u91cc\u53ef\u4ee5\u5b89\u88c5\uff0c\u70b9\u5b89\u88c5\u540e\uff0c\u5173\u95ed VS \u6267\u884c\u5b89\u88c5\u3002\u5b9e\u6d4b VS 2026 \u53ef\u7528\u3002 \u524d\u6bb5\u65f6\u95f4\u6211\u5c31\u5410\u69fd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":null,"zakra_menu_item_active_color":null,"zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[1,589,611,595],"tags":[2078,2112,1999,2113,2111],"class_list":["post-24445","post","type-post","status-publish","format-standard","hentry","category-all","category-c-c","category-windows","category-595","tag-utf-8","tag-utf-8-with-bom","tag-visual-studio","tag-2113","tag-2111"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/24445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24445"}],"version-history":[{"count":3,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/24445\/revisions"}],"predecessor-version":[{"id":24452,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/24445\/revisions\/24452"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}