{"id":1009,"date":"2016-12-13T13:48:30","date_gmt":"2016-12-13T05:48:30","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1009"},"modified":"2016-12-13T13:48:30","modified_gmt":"2016-12-13T05:48:30","slug":"java-%e8%8e%b7%e5%8f%96%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e4%b8%ad%e9%bb%98%e8%ae%a4%e7%bc%96%e7%a0%81%e7%9a%84%e4%b8%a4%e7%a7%8d%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1009","title":{"rendered":"java \u83b7\u53d6\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u9ed8\u8ba4\u7f16\u7801\u7684\u4e24\u79cd\u65b9\u6cd5"},"content":{"rendered":"<p>\n\t\u6700\u8fd1\u5728\u5f00\u53d1\u4e2d\u9047\u5230\u4e86\u7f16\u7801\u95ee\u9898\u3002\u5f00\u53d1\u73af\u5883\u662fWindows\u4e2d\u6587\u65d7\u8230\u7248\uff0cuat\u73af\u5883\u662fWindows \u82f1\u6587Server\u7248(\u88c5\u6709\u652f\u6301\u4e2d\u6587\u7684\u8bed\u8a00\u5305)\uff0c\u751f\u4ea7\u662f Windows \u4e2d\u6587 Server\u7248\u672c\u3002\u5728\u81ea\u5df1\u5f00\u53d1\u73af\u5883\u4e0a\u6ca1\u6709\u95ee\u9898\uff0c\u4e0a\u751f\u4ea7\u4e0a\u4e5f\u6ca1\u95ee\u9898\u3002\u67d0\u4e00\u4e2a\u5f00\u53d1\u4e86\u4e00\u4e2a\u65b0\u529f\u80fd\uff0c\u5bfc\u81f4\u4e00\u4e2a\u8001\u529f\u80fd\u5728uat\u73af\u5883\u4e0a\u65e0\u6cd5\u4f7f\u7528\u3002\u7ecf\u8fc7\u6392\u67e5\u662f\u4e71\u7801\u95ee\u9898\uff0c\u56e0\u4e3a\u4ee5\u524d\u662f\u6ca1\u6709\u95ee\u9898\u7684\uff0c\u8fd9\u6b21\u51fa\u4e86\u95ee\u9898\uff0c\u6211\u4eec\u53d1\u73b0uat\u73af\u5883\u7684\u7cfb\u7edf\u88ab\u8fd0\u7ef4\u7684\u540c\u4e8b\u91cd\u65b0\u5b89\u88c5\u4e86\u4e00\u4e2a\u3002\n<\/p>\n<h2>\n\tWindows \u82f1\u6587\u7cfb\u7edf\u7684\u7f16\u7801\u683c\u5f0f<br \/>\n<\/h2>\n<p>\n\tWindows \u82f1\u6587\u7cfb\u7edf\u9ed8\u8ba4\u7684\u7f16\u7801\u683c\u5f0f\u6839\u636e\u7cfb\u7edf\u800c\u5b9a\uff0c\u8001\u7684xp\u7cfb\u7edf\u53ef\u80fd\u662f windows-1252 \u7684\u7f16\u7801\u683c\u5f0f\u3002\u4e5f\u6709 ANSI \u683c\u5f0f\u7684\uff0cISO-8859-1\u683c\u5f0f\u7684\uff0c\u8fd8\u6709\u6211\u4eec\u5e38\u89c1\u7684 GBK \u683c\u5f0f\u7b49\u3002\n<\/p>\n<h2>\n\tjava \u83b7\u53d6\u64cd\u4f5c\u7cfb\u7edf\u7684\u9ed8\u8ba4\u7f16\u7801\u683c\u5f0f<br \/>\n<\/h2>\n<pre class=\"brush:java;\">\r\nimport java.nio.charset.Charset;   \r\n\r\npublic class getDefaultCharset    {   \r\n    public static void main(String[] args)   {   \r\n        \/\/\u65b9\u6cd5\u4e00\uff1a\u4e2d\u6587\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u6253\u5370GBK   \r\n        System.out.println(System.getProperty(&quot;file.encoding&quot;));   \r\n           \r\n        \/\/\u65b9\u6cd5\u4e8c\uff1a\u4e2d\u6587\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u6253\u5370GBK   \r\n        System.out.println(Charset.defaultCharset());   \r\n    }   \r\n}  \r\n<\/pre>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1009\">java \u83b7\u53d6\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u9ed8\u8ba4\u7f16\u7801\u7684\u4e24\u79cd\u65b9\u6cd5<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728\u5f00\u53d1\u4e2d\u9047\u5230\u4e86\u7f16\u7801\u95ee\u9898\u3002\u5f00\u53d1\u73af\u5883\u662fWindows\u4e2d\u6587\u65d7\u8230\u7248\uff0cuat\u73af\u5883\u662fWindows \u82f1\u6587Server\u7248 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[718,69,719,716,717],"class_list":["post-1009","post","type-post","status-publish","format-standard","hentry","category-java","tag-charset","tag-java","tag-windows-1252","tag-716","tag-717"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1009","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1009"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1009\/revisions"}],"predecessor-version":[{"id":1010,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1009\/revisions\/1010"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}