{"id":46187,"date":"2025-07-30T02:34:05","date_gmt":"2025-07-29T18:34:05","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/46187.html"},"modified":"2025-07-30T02:34:05","modified_gmt":"2025-07-29T18:34:05","slug":"%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e7%bd%91%e7%ab%99%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%bd%bf%e7%94%a8%e7%9a%84%e6%95%b0%e6%8d%ae%e5%ba%93%e7%bc%96%e7%a0%81%e6%a0%bc%e5%bc%8f%e6%98%af%e5%90%a6%e4%b8%ba-g","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/46187.html","title":{"rendered":"\u5982\u4f55\u5224\u65ad\u7f51\u7ad9\u670d\u52a1\u5668\u4f7f\u7528\u7684\u6570\u636e\u5e93\u7f16\u7801\u683c\u5f0f\u662f\u5426\u4e3a GBK"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%F0%9F%9A%80%201.%20%E6%A3%80%E6%9F%A5%20HTTP%20%E5%93%8D%E5%BA%94%E5%A4%B4%E4%B8%AD%E7%9A%84%20Content-Type-toc\" style=\"margin-left:40px\">&#x1f680; 1. \u68c0\u67e5 HTTP \u54cd\u5e94\u5934\u4e2d\u7684 Content-Type<\/p>\n<p id=\"%F0%9F%93%9D%20%E6%AD%A5%E9%AA%A4-toc\" style=\"margin-left:80px\">&#x1f4dd; \u6b65\u9aa4<\/p>\n<p id=\"%F0%9F%A7%A0%20%E5%8E%9F%E7%90%86-toc\" style=\"margin-left:80px\">&#x1f9e0; \u539f\u7406<\/p>\n<p id=\"%F0%9F%93%9A%20%E6%A1%88%E4%BE%8B-toc\" style=\"margin-left:80px\">&#x1f4da; \u6848\u4f8b<\/p>\n<p id=\"%E2%9A%A0%EF%B8%8F%20%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9-toc\" style=\"margin-left:80px\">\u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879<\/p>\n<p id=\"%F0%9F%97%84%EF%B8%8F%202.%20%E6%A3%80%E6%9F%A5%E6%95%B0%E6%8D%AE%E5%BA%93%E8%BF%9E%E6%8E%A5%E9%85%8D%E7%BD%AE-toc\" style=\"margin-left:40px\">&#x1f5c4;\ufe0f 2. \u68c0\u67e5\u6570\u636e\u5e93\u8fde\u63a5\u914d\u7f6e<\/p>\n<p id=\"%F0%9F%93%9D%20%E6%AD%A5%E9%AA%A4-toc\" style=\"margin-left:80px\">&#x1f4dd; \u6b65\u9aa4<\/p>\n<p id=\"%F0%9F%A7%A0%20%E5%8E%9F%E7%90%86-toc\" style=\"margin-left:80px\">&#x1f9e0; \u539f\u7406<\/p>\n<p id=\"%F0%9F%93%9A%20%E6%A1%88%E4%BE%8B-toc\" style=\"margin-left:80px\">&#x1f4da; \u6848\u4f8b<\/p>\n<p id=\"%E2%9A%A0%EF%B8%8F%20%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9-toc\" style=\"margin-left:80px\">\u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879<\/p>\n<p id=\"%F0%9F%97%82%EF%B8%8F%203.%20%E6%A3%80%E6%9F%A5%E6%95%B0%E6%8D%AE%E5%BA%93%E8%A1%A8%E5%8F%8A%E5%AD%97%E6%AE%B5%E7%9A%84%E7%BC%96%E7%A0%81-toc\" style=\"margin-left:40px\">&#x1f5c2;\ufe0f 3. \u68c0\u67e5\u6570\u636e\u5e93\u8868\u53ca\u5b57\u6bb5\u7684\u7f16\u7801<\/p>\n<p id=\"%F0%9F%93%9D%20%E6%AD%A5%E9%AA%A4-toc\" style=\"margin-left:80px\">&#x1f4dd; \u6b65\u9aa4<\/p>\n<p id=\"%F0%9F%A7%A0%20%E5%8E%9F%E7%90%86-toc\" style=\"margin-left:80px\">&#x1f9e0; \u539f\u7406<\/p>\n<p id=\"%F0%9F%93%9A%20%E6%A1%88%E4%BE%8B-toc\" style=\"margin-left:80px\">&#x1f4da; \u6848\u4f8b<\/p>\n<p id=\"%E2%9A%A0%EF%B8%8F%20%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9-toc\" style=\"margin-left:80px\">\u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879<\/p>\n<p id=\"%F0%9F%8C%90%204.%20%E6%A3%80%E6%B5%8B%E7%BD%91%E9%A1%B5%E5%86%85%E5%AE%B9%E7%9A%84%E7%BC%96%E7%A0%81%E5%A3%B0%E6%98%8E-toc\" style=\"margin-left:40px\">&#x1f310; 4. \u68c0\u6d4b\u7f51\u9875\u5185\u5bb9\u7684\u7f16\u7801\u58f0\u660e<\/p>\n<p id=\"%F0%9F%93%9D%20%E6%AD%A5%E9%AA%A4-toc\" style=\"margin-left:80px\">&#x1f4dd; \u6b65\u9aa4<\/p>\n<p id=\"%F0%9F%A7%A0%20%E5%8E%9F%E7%90%86-toc\" style=\"margin-left:80px\">&#x1f9e0; \u539f\u7406<\/p>\n<p id=\"%F0%9F%93%9A%20%E6%A1%88%E4%BE%8B-toc\" style=\"margin-left:80px\">&#x1f4da; \u6848\u4f8b<\/p>\n<p id=\"%E2%9A%A0%EF%B8%8F%20%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9-toc\" style=\"margin-left:80px\">\u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879<\/p>\n<p id=\"%F0%9F%A7%AA%205.%20%E6%89%8B%E5%8A%A8%E6%B5%8B%E8%AF%95%E4%B8%8E%E4%B9%B1%E7%A0%81%E5%88%A4%E6%96%AD-toc\" style=\"margin-left:40px\">&#x1f9ea; 5. \u624b\u52a8\u6d4b\u8bd5\u4e0e\u4e71\u7801\u5224\u65ad<\/p>\n<p id=\"%F0%9F%93%9D%20%E6%AD%A5%E9%AA%A4-toc\" style=\"margin-left:80px\">&#x1f4dd; \u6b65\u9aa4<\/p>\n<p id=\"%F0%9F%A7%A0%20%E5%8E%9F%E7%90%86-toc\" style=\"margin-left:80px\">&#x1f9e0; \u539f\u7406<\/p>\n<p id=\"%F0%9F%93%9A%20%E6%A1%88%E4%BE%8B-toc\" style=\"margin-left:80px\">&#x1f4da; \u6848\u4f8b<\/p>\n<p id=\"%E2%9A%A0%EF%B8%8F%20%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9-toc\" style=\"margin-left:80px\">\u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879<\/p>\n<p id=\"%F0%9F%93%8A%20%E6%80%BB%E7%BB%93%E4%B8%8E%E5%85%B3%E9%94%AE%E7%9F%A5%E8%AF%86%E7%82%B9-toc\" style=\"margin-left:40px\">&#x1f4ca; \u603b\u7ed3\u4e0e\u5173\u952e\u77e5\u8bc6\u70b9<\/p>\n<p id=\"%F0%9F%8E%AF%20%E5%85%B3%E9%94%AE%E7%9F%A5%E8%AF%86%E7%82%B9-toc\" style=\"margin-left:80px\">&#x1f3af; \u5173\u952e\u77e5\u8bc6\u70b9<\/p>\n<p id=\"%F0%9F%94%A5%20%E4%BC%98%E5%8C%96%E5%BB%BA%E8%AE%AE-toc\" style=\"margin-left:80px\">&#x1f525; \u4f18\u5316\u5efa\u8bae<\/p>\n<hr id=\"hr-toc\" \/>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183357-688914150ea80.jpg\" \/><\/p>\n<h3 id=\"%F0%9F%9A%80%201.%20%E6%A3%80%E6%9F%A5%20HTTP%20%E5%93%8D%E5%BA%94%E5%A4%B4%E4%B8%AD%E7%9A%84%20Content-Type\">&#x1f680; 1. \u68c0\u67e5 HTTP \u54cd\u5e94\u5934\u4e2d\u7684 Content-Type<\/h3>\n<h4 id=\"%F0%9F%93%9D%20%E6%AD%A5%E9%AA%A4\">&#x1f4dd; \u6b65\u9aa4<\/h4>\n<li>\n<p>\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177&#xff08;\u5982 curl&#xff09;\u6216\u6d4f\u89c8\u5668\u7684\u5f00\u53d1\u8005\u5de5\u5177&#xff08;F12 -&gt; Network&#xff09;\u83b7\u53d6\u7f51\u7ad9\u7684 HTTP \u54cd\u5e94\u5934\u3002<\/p>\n<p> curl -I http:\/\/example.com <\/li>\n<li>\n<p>\u67e5\u770b\u54cd\u5e94\u5934\u4e2d\u7684 Content-Type \u5b57\u6bb5&#xff0c;\u5bfb\u627e charset \u53c2\u6570\u3002<\/p>\n<\/li>\n<li>\n<p>\u5982\u679c\u8fd4\u56de charset&#061;GBK&#xff0c;\u5219\u8868\u660e\u670d\u52a1\u5668\u8fd4\u56de\u7684\u7f51\u9875\u5185\u5bb9\u4f7f\u7528 GBK \u7f16\u7801\u3002<\/p>\n<\/li>\n<h4 id=\"%F0%9F%A7%A0%20%E5%8E%9F%E7%90%86\">&#x1f9e0; \u539f\u7406<\/h4>\n<p>HTTP \u54cd\u5e94\u5934\u4e2d\u7684 Content-Type \u5b57\u6bb5\u5b9a\u4e49\u4e86\u670d\u52a1\u5668\u8fd4\u56de\u5185\u5bb9\u7684 MIME \u7c7b\u578b\u548c\u5b57\u7b26\u7f16\u7801\u3002charset \u53c2\u6570\u660e\u786e\u6307\u5b9a\u4e86\u7f51\u9875\u5185\u5bb9\u7684\u7f16\u7801\u683c\u5f0f&#xff08;\u5982 GBK\u3001UTF-8&#xff09;\u3002\u5982\u679c\u670d\u52a1\u5668\u660e\u786e\u8fd4\u56de charset&#061;GBK&#xff0c;\u901a\u5e38\u8868\u660e\u7f51\u9875\u5185\u5bb9\u4ee5 GBK \u7f16\u7801\u4f20\u8f93\u3002<\/p>\n<h4 id=\"%F0%9F%93%9A%20%E6%A1%88%E4%BE%8B\">&#x1f4da; \u6848\u4f8b<\/h4>\n<p>\u5047\u8bbe\u901a\u8fc7 curl \u83b7\u53d6\u4ee5\u4e0b\u54cd\u5e94\u5934&#xff1a;<\/p>\n<p>HTTP\/1.1 200 OK<br \/>\nContent-Type: text\/html; charset&#061;GBK<br \/>\nServer: Apache\/2.4.41 <\/p>\n<p>\u8fd9\u91cc\u7684 charset&#061;GBK \u8868\u660e\u7f51\u9875\u5185\u5bb9\u4ee5 GBK \u7f16\u7801\u4f20\u8f93&#xff0c;\u63d0\u793a\u670d\u52a1\u5668\u53ef\u80fd\u4f7f\u7528 GBK \u7f16\u7801\u5904\u7406\u6570\u636e\u3002<\/p>\n<h4 id=\"%E2%9A%A0%EF%B8%8F%20%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9\">\u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879<\/h4>\n<ul>\n<li>\n<p>\u5982\u679c\u54cd\u5e94\u5934\u4e2d\u672a\u660e\u786e\u6307\u5b9a charset&#xff0c;\u9700\u8981\u8fdb\u4e00\u6b65\u68c0\u67e5\u7f51\u9875\u7684 HTML \u6807\u7b7e\u6216\u6570\u636e\u5e93\u914d\u7f6e\u3002<\/p>\n<\/li>\n<li>\n<p>\u67d0\u4e9b\u670d\u52a1\u5668\u53ef\u80fd\u672a\u6b63\u786e\u8bbe\u7f6e Content-Type&#xff0c;\u5bfc\u81f4\u7f16\u7801\u4fe1\u606f\u7f3a\u5931\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"%F0%9F%97%84%EF%B8%8F%202.%20%E6%A3%80%E6%9F%A5%E6%95%B0%E6%8D%AE%E5%BA%93%E8%BF%9E%E6%8E%A5%E9%85%8D%E7%BD%AE\">&#x1f5c4;\ufe0f 2. \u68c0\u67e5\u6570\u636e\u5e93\u8fde\u63a5\u914d\u7f6e<\/h3>\n<h4 id=\"%F0%9F%93%9D%20%E6%AD%A5%E9%AA%A4\">&#x1f4dd; \u6b65\u9aa4<\/h4>\n<li>\n<p>\u767b\u5f55\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf&#xff08;\u5982 MySQL&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u67e5\u770b\u6570\u636e\u5e93\u7684\u5b57\u7b26\u96c6\u914d\u7f6e&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5bf9\u4e8e MySQL&#xff0c;\u5728 my.cnf \u6216 my.ini \u6587\u4ef6\u4e2d\u68c0\u67e5 [client] \u548c [mysqld] \u90e8\u5206\u7684 character-set-server \u548c default-character-set \u8bbe\u7f6e\u3002<\/p>\n<\/li>\n<li>\n<p>\u6267\u884c SQL \u67e5\u8be2&#xff1a;<\/p>\n<p> SHOW VARIABLES LIKE &#039;character_set%&#039;; <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u68c0\u67e5\u8fd4\u56de\u7ed3\u679c\u4e2d character_set_database \u548c character_set_connection \u662f\u5426\u4e3a gbk\u3002<\/p>\n<\/li>\n<h4 id=\"%F0%9F%A7%A0%20%E5%8E%9F%E7%90%86\">&#x1f9e0; \u539f\u7406<\/h4>\n<p>\u6570\u636e\u5e93\u7684\u5b57\u7b26\u96c6\u914d\u7f6e\u51b3\u5b9a\u4e86\u6570\u636e\u5b58\u50a8\u548c\u4f20\u8f93\u65f6\u7684\u7f16\u7801\u65b9\u5f0f\u3002character_set_client \u8868\u793a\u5ba2\u6237\u7aef\u53d1\u9001\u6570\u636e\u7684\u7f16\u7801&#xff0c;character_set_connection \u8868\u793a\u6570\u636e\u5e93\u8fde\u63a5\u7684\u7f16\u7801&#xff0c;\u800c character_set_database \u8868\u793a\u6570\u636e\u5e93\u9ed8\u8ba4\u7684\u5b57\u7b26\u96c6\u3002\u5982\u679c\u8fd9\u4e9b\u503c\u5305\u542b gbk&#xff0c;\u5219\u6570\u636e\u5e93\u4ee5 GBK \u7f16\u7801\u5b58\u50a8\u6570\u636e\u3002<\/p>\n<h4 id=\"%F0%9F%93%9A%20%E6%A1%88%E4%BE%8B\">&#x1f4da; \u6848\u4f8b<\/h4>\n<p>\u5047\u8bbe\u5728 MySQL \u4e2d\u6267\u884c\u4ee5\u4e0b\u67e5\u8be2&#xff1a;<\/p>\n<p>SHOW VARIABLES LIKE &#039;character_set%&#039;; <\/p>\n<p>\u8fd4\u56de\u7ed3\u679c&#xff1a;<\/p>\n<p>&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;-&#043;<br \/>\n| Variable_name \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  | Value |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;-&#043;<br \/>\n| character_set_client \u00a0 \u00a0 | gbk \u00a0 |<br \/>\n| character_set_connection | gbk \u00a0 |<br \/>\n| character_set_database \u00a0 | gbk \u00a0 |<br \/>\n| character_set_results \u00a0  | gbk \u00a0 |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;&#8212;&#8212;-&#043; <\/p>\n<p>\u8fd9\u8868\u660e\u6570\u636e\u5e93\u7684\u5ba2\u6237\u7aef\u3001\u8fde\u63a5\u548c\u5b58\u50a8\u90fd\u4f7f\u7528 GBK \u7f16\u7801&#xff0c;\u786e\u8ba4\u670d\u52a1\u5668\u6570\u636e\u5e93\u7f16\u7801\u4e3a GBK\u3002<\/p>\n<h4 id=\"%E2%9A%A0%EF%B8%8F%20%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9\">\u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879<\/h4>\n<ul>\n<li>\n<p>\u5982\u679c character_set_connection \u548c character_set_database \u4e0d\u4e00\u81f4&#xff0c;\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u5728\u4f20\u8f93\u6216\u5b58\u50a8\u65f6\u51fa\u73b0\u7f16\u7801\u8f6c\u6362\u95ee\u9898\u3002<\/p>\n<\/li>\n<li>\n<p>\u67d0\u4e9b\u6570\u636e\u5e93\u53ef\u80fd\u672a\u660e\u786e\u914d\u7f6e\u5b57\u7b26\u96c6&#xff0c;\u9700\u68c0\u67e5\u5177\u4f53\u8868\u6216\u5b57\u6bb5\u7684\u7f16\u7801\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"%F0%9F%97%82%EF%B8%8F%203.%20%E6%A3%80%E6%9F%A5%E6%95%B0%E6%8D%AE%E5%BA%93%E8%A1%A8%E5%8F%8A%E5%AD%97%E6%AE%B5%E7%9A%84%E7%BC%96%E7%A0%81\">&#x1f5c2;\ufe0f 3. \u68c0\u67e5\u6570\u636e\u5e93\u8868\u53ca\u5b57\u6bb5\u7684\u7f16\u7801<\/h3>\n<h4 id=\"%F0%9F%93%9D%20%E6%AD%A5%E9%AA%A4\">&#x1f4dd; \u6b65\u9aa4<\/h4>\n<li>\n<p>\u4f7f\u7528 SQL \u67e5\u8be2\u68c0\u67e5\u8868\u7684\u5b57\u7b26\u96c6&#xff1a;<\/p>\n<p> SHOW CREATE TABLE &#096;your_table_name&#096;; <\/li>\n<li>\n<p>\u68c0\u67e5\u8fd4\u56de\u7684\u8868\u7ed3\u6784\u4e2d\u662f\u5426\u5305\u542b DEFAULT CHARSET&#061;gbk \u6216\u5b57\u6bb5\u7ea7\u522b\u7684 CHARACTER SET gbk\u3002<\/p>\n<\/li>\n<li>\n<p>\u786e\u8ba4\u8868\u53ca\u5176\u5b57\u6bb5\u662f\u5426\u660e\u786e\u4f7f\u7528 GBK \u7f16\u7801\u3002<\/p>\n<\/li>\n<h4 id=\"%F0%9F%A7%A0%20%E5%8E%9F%E7%90%86\">&#x1f9e0; \u539f\u7406<\/h4>\n<p>\u6570\u636e\u5e93\u4e2d\u7684\u8868\u548c\u5b57\u6bb5\u53ef\u4ee5\u5355\u72ec\u6307\u5b9a\u5b57\u7b26\u96c6\u3002\u5982\u679c\u8868\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u6216\u5b57\u6bb5\u7684\u5b57\u7b26\u96c6\u4e3a GBK&#xff0c;\u5219\u8be5\u8868\u5b58\u50a8\u7684\u6570\u636e\u5c06\u4ee5 GBK \u7f16\u7801\u3002\u68c0\u67e5\u8868\u7ed3\u6784\u53ef\u4ee5\u76f4\u63a5\u786e\u8ba4\u6570\u636e\u5e93\u7684\u7f16\u7801\u8bbe\u7f6e\u3002<\/p>\n<h4 id=\"%F0%9F%93%9A%20%E6%A1%88%E4%BE%8B\">&#x1f4da; \u6848\u4f8b<\/h4>\n<p>\u6267\u884c\u4ee5\u4e0b\u67e5\u8be2&#xff1a;<\/p>\n<p>SHOW CREATE TABLE &#096;users&#096;; <\/p>\n<p>\u8fd4\u56de\u7ed3\u679c&#xff1a;<\/p>\n<p>CREATE TABLE &#096;users&#096; (<br \/>\n \u00a0&#096;id&#096; INT(11) NOT NULL AUTO_INCREMENT,<br \/>\n \u00a0&#096;name&#096; VARCHAR(100) CHARACTER SET gbk NOT NULL,<br \/>\n \u00a0&#096;description&#096; TEXT CHARACTER SET gbk,<br \/>\n \u00a0PRIMARY KEY (&#096;id&#096;)<br \/>\n) ENGINE&#061;InnoDB DEFAULT CHARSET&#061;gbk; <\/p>\n<p>\u8fd9\u91cc&#xff0c;DEFAULT CHARSET&#061;gbk \u8868\u793a\u8868\u9ed8\u8ba4\u4f7f\u7528 GBK \u7f16\u7801&#xff0c;name \u548c description \u5b57\u6bb5\u4e5f\u660e\u786e\u4f7f\u7528 GBK \u7f16\u7801\u3002<\/p>\n<h4 id=\"%E2%9A%A0%EF%B8%8F%20%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9\">\u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879<\/h4>\n<ul>\n<li>\n<p>\u5982\u679c\u8868\u4e2d\u90e8\u5206\u5b57\u6bb5\u4f7f\u7528\u5176\u4ed6\u5b57\u7b26\u96c6&#xff08;\u5982 UTF-8&#xff09;&#xff0c;\u53ef\u80fd\u5bfc\u81f4\u7f16\u7801\u6df7\u5408&#xff0c;\u9700\u7279\u522b\u6ce8\u610f\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e0d\u540c\u6570\u636e\u5e93\u5f15\u64ce&#xff08;\u5982 InnoDB\u3001MyISAM&#xff09;\u53ef\u80fd\u5bf9\u5b57\u7b26\u96c6\u7684\u652f\u6301\u6709\u6240\u5dee\u5f02\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"%F0%9F%8C%90%204.%20%E6%A3%80%E6%B5%8B%E7%BD%91%E9%A1%B5%E5%86%85%E5%AE%B9%E7%9A%84%E7%BC%96%E7%A0%81%E5%A3%B0%E6%98%8E\">&#x1f310; 4. \u68c0\u6d4b\u7f51\u9875\u5185\u5bb9\u7684\u7f16\u7801\u58f0\u660e<\/h3>\n<h4 id=\"%F0%9F%93%9D%20%E6%AD%A5%E9%AA%A4\">&#x1f4dd; \u6b65\u9aa4<\/h4>\n<li>\n<p>\u6253\u5f00\u7f51\u7ad9\u9875\u9762&#xff0c;\u67e5\u770b\u6e90\u4ee3\u7801&#xff08;\u53f3\u952e -&gt; \u67e5\u770b\u9875\u9762\u6e90\u4ee3\u7801&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u67e5\u627e HTML \u4e2d\u7684 &lt;meta&gt; \u6807\u7b7e&#xff0c;\u68c0\u67e5\u662f\u5426\u6709\u4ee5\u4e0b\u58f0\u660e&#xff1a;<\/p>\n<p> &lt;meta charset&#061;&#034;GBK&#034;&gt; <\/p>\n<p>\u6216<\/p>\n<p> &lt;meta http-equiv&#061;&#034;Content-Type&#034; content&#061;&#034;text\/html; charset&#061;GBK&#034;&gt; <\/li>\n<li>\n<p>\u5982\u679c\u5b58\u5728\u4e0a\u8ff0\u58f0\u660e&#xff0c;\u8bf4\u660e\u7f51\u9875\u5185\u5bb9\u4ee5 GBK \u7f16\u7801\u8fd4\u56de\u3002<\/p>\n<\/li>\n<h4 id=\"%F0%9F%A7%A0%20%E5%8E%9F%E7%90%86\">&#x1f9e0; \u539f\u7406<\/h4>\n<p>HTML \u4e2d\u7684 &lt;meta&gt; \u6807\u7b7e\u7528\u4e8e\u6307\u5b9a\u7f51\u9875\u5185\u5bb9\u7684\u5b57\u7b26\u7f16\u7801&#xff0c;\u6d4f\u89c8\u5668\u4f1a\u6839\u636e\u8be5\u58f0\u660e\u89e3\u6790\u9875\u9762\u3002\u5982\u679c &lt;meta&gt; \u6807\u7b7e\u6307\u5b9a charset&#061;GBK&#xff0c;\u5219\u7f51\u9875\u5185\u5bb9\u4ee5 GBK \u7f16\u7801\u4f20\u8f93&#xff0c;\u901a\u5e38\u4e0e\u670d\u52a1\u5668\u7684\u7f16\u7801\u8bbe\u7f6e\u4e00\u81f4\u3002<\/p>\n<h4 id=\"%F0%9F%93%9A%20%E6%A1%88%E4%BE%8B\">&#x1f4da; \u6848\u4f8b<\/h4>\n<p>\u5047\u8bbe\u67e5\u770b\u67d0\u7f51\u7ad9\u7684\u9875\u9762\u6e90\u4ee3\u7801&#xff0c;\u53d1\u73b0\u4ee5\u4e0b\u6807\u7b7e&#xff1a;<\/p>\n<p>&lt;head&gt;<br \/>\n \u00a0&lt;meta http-equiv&#061;&#034;Content-Type&#034; content&#061;&#034;text\/html; charset&#061;GBK&#034;&gt;<br \/>\n \u00a0&lt;title&gt;\u793a\u4f8b\u7f51\u7ad9&lt;\/title&gt;<br \/>\n&lt;\/head&gt; <\/p>\n<p>\u8fd9\u8868\u660e\u7f51\u9875\u5185\u5bb9\u660e\u786e\u4f7f\u7528 GBK \u7f16\u7801&#xff0c;\u670d\u52a1\u5668\u5f88\u53ef\u80fd\u4ee5 GBK \u683c\u5f0f\u5904\u7406\u6570\u636e\u3002<\/p>\n<h4 id=\"%E2%9A%A0%EF%B8%8F%20%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9\">\u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879<\/h4>\n<ul>\n<li>\n<p>\u5982\u679c &lt;meta&gt; \u6807\u7b7e\u7f3a\u5931&#xff0c;\u6d4f\u89c8\u5668\u53ef\u80fd\u6839\u636e HTTP \u54cd\u5e94\u5934\u6216\u5185\u5bb9\u81ea\u52a8\u63a8\u65ad\u7f16\u7801&#xff0c;\u589e\u52a0\u8bef\u5224\u98ce\u9669\u3002<\/p>\n<\/li>\n<li>\n<p>\u67d0\u4e9b\u52a8\u6001\u751f\u6210\u7684\u9875\u9762\u53ef\u80fd\u672a\u6b63\u786e\u8bbe\u7f6e &lt;meta&gt; \u6807\u7b7e&#xff0c;\u9700\u7ed3\u5408\u5176\u4ed6\u65b9\u6cd5\u9a8c\u8bc1\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"%F0%9F%A7%AA%205.%20%E6%89%8B%E5%8A%A8%E6%B5%8B%E8%AF%95%E4%B8%8E%E4%B9%B1%E7%A0%81%E5%88%A4%E6%96%AD\">&#x1f9ea; 5. \u624b\u52a8\u6d4b\u8bd5\u4e0e\u4e71\u7801\u5224\u65ad<\/h3>\n<h4 id=\"%F0%9F%93%9D%20%E6%AD%A5%E9%AA%A4\">&#x1f4dd; \u6b65\u9aa4<\/h4>\n<li>\n<p>\u5728\u7f51\u7ad9\u8868\u5355\u4e2d\u8f93\u5165 GBK \u7f16\u7801\u652f\u6301\u7684\u7279\u6b8a\u5b57\u7b26&#xff08;\u5982\u7b80\u4f53\u4e2d\u6587\u5168\u89d2\u5b57\u7b26&#xff1a;\u4f60\u597d&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u63d0\u4ea4\u8868\u5355\u540e&#xff0c;\u89c2\u5bdf\u8fd4\u56de\u9875\u9762\u6216\u6570\u636e\u5e93\u5b58\u50a8\u7684\u6570\u636e\u662f\u5426\u6b63\u786e\u663e\u793a\u3002<\/p>\n<\/li>\n<li>\n<p>\u5982\u679c\u51fa\u73b0\u4e71\u7801&#xff08;\u5982 ????? \u6216\u5947\u602a\u7b26\u53f7&#xff09;&#xff0c;\u8bf4\u660e\u7f16\u7801\u8bbe\u7f6e\u53ef\u80fd\u4e0d\u4e00\u81f4&#xff1b;\u5982\u679c\u663e\u793a\u6b63\u5e38&#xff0c;\u8bf4\u660e\u670d\u52a1\u5668\u652f\u6301 GBK \u7f16\u7801\u3002<\/p>\n<\/li>\n<h4 id=\"%F0%9F%A7%A0%20%E5%8E%9F%E7%90%86\">&#x1f9e0; \u539f\u7406<\/h4>\n<p>GBK \u662f\u4e00\u79cd\u652f\u6301\u7b80\u4f53\u4e2d\u6587\u7684\u5b57\u7b26\u7f16\u7801\u683c\u5f0f\u3002\u5982\u679c\u7f51\u7ad9\u548c\u6570\u636e\u5e93\u6b63\u786e\u914d\u7f6e\u4e3a GBK&#xff0c;\u63d0\u4ea4\u7684\u4e2d\u6587\u5b57\u7b26\u5e94\u80fd\u6b63\u5e38\u5b58\u50a8\u548c\u663e\u793a\u3002\u5982\u679c\u51fa\u73b0\u4e71\u7801&#xff0c;\u53ef\u80fd\u662f\u7f16\u7801\u914d\u7f6e\u9519\u8bef&#xff08;\u5982\u670d\u52a1\u5668\u671f\u5f85 UTF-8 \u800c\u6536\u5230 GBK \u6570\u636e&#xff09;\u3002<\/p>\n<h4 id=\"%F0%9F%93%9A%20%E6%A1%88%E4%BE%8B\">&#x1f4da; \u6848\u4f8b<\/h4>\n<p>\u5728\u67d0\u7f51\u7ad9\u7684\u641c\u7d22\u6846\u8f93\u5165 \u6d4b\u8bd5\u6587\u672c&#xff0c;\u63d0\u4ea4\u540e&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u6b63\u5e38\u60c5\u51b5&#xff1a;\u8fd4\u56de\u9875\u9762\u663e\u793a \u6d4b\u8bd5\u6587\u672c&#xff0c;\u6570\u636e\u5e93\u4e2d\u5b58\u50a8\u7684\u6570\u636e\u4e5f\u80fd\u6b63\u786e\u663e\u793a\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e71\u7801\u60c5\u51b5&#xff1a;\u8fd4\u56de\u9875\u9762\u663e\u793a ???? \u6216\u7c7b\u4f3c\u4e71\u7801&#xff0c;\u6570\u636e\u5e93\u67e5\u8be2\u7ed3\u679c\u4e3a 6D4B8BD5BCE4C8C4&#xff0c;\u8868\u660e\u7f16\u7801\u4e0d\u5339\u914d&#xff08;\u53ef\u80fd\u662f UTF-8 \u9519\u8bef\u89e3\u6790 GBK \u6570\u636e&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<h4 id=\"%E2%9A%A0%EF%B8%8F%20%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9\">\u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879<\/h4>\n<ul>\n<li>\n<p>\u6d4b\u8bd5\u65f6\u9700\u786e\u4fdd\u8f93\u5165\u7684\u5b57\u7b26\u5728 GBK \u7f16\u7801\u8303\u56f4\u5185&#xff08;\u4f8b\u5982&#xff0c;\u7e41\u4f53\u5b57\u53ef\u80fd\u8d85\u51fa GBK \u652f\u6301\u8303\u56f4&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e71\u7801\u53ef\u80fd\u662f\u5ba2\u6237\u7aef\u3001\u670d\u52a1\u5668\u6216\u6570\u636e\u5e93\u4efb\u4e00\u73af\u8282\u7684\u7f16\u7801\u4e0d\u4e00\u81f4\u5bfc\u81f4&#xff0c;\u9700\u9010\u4e00\u6392\u67e5\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"%F0%9F%93%8A%20%E6%80%BB%E7%BB%93%E4%B8%8E%E5%85%B3%E9%94%AE%E7%9F%A5%E8%AF%86%E7%82%B9\">&#x1f4ca; \u603b\u7ed3\u4e0e\u5173\u952e\u77e5\u8bc6\u70b9<\/h3>\n<p>\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4&#xff0c;\u53ef\u4ee5\u7cfb\u7edf\u5730\u5224\u65ad\u7f51\u7ad9\u670d\u52a1\u5668\u662f\u5426\u4f7f\u7528 GBK \u7f16\u7801\u683c\u5f0f&#xff1a;<\/p>\n<li>\n<p>\u68c0\u67e5 HTTP \u54cd\u5e94\u5934&#xff1a;\u786e\u8ba4 Content-Type \u4e2d\u7684 charset \u662f\u5426\u4e3a GBK\u3002<\/p>\n<\/li>\n<li>\n<p>\u68c0\u67e5\u6570\u636e\u5e93\u914d\u7f6e&#xff1a;\u901a\u8fc7 SHOW VARIABLES \u786e\u8ba4\u6570\u636e\u5e93\u7684\u5b57\u7b26\u96c6\u8bbe\u7f6e\u3002<\/p>\n<\/li>\n<li>\n<p>\u68c0\u67e5\u8868\u548c\u5b57\u6bb5&#xff1a;\u901a\u8fc7 SHOW CREATE TABLE \u9a8c\u8bc1\u8868\u548c\u5b57\u6bb5\u7684\u7f16\u7801\u3002<\/p>\n<\/li>\n<li>\n<p>\u68c0\u67e5\u7f51\u9875\u58f0\u660e&#xff1a;\u67e5\u770b HTML \u4e2d\u7684 &lt;meta&gt; \u6807\u7b7e\u662f\u5426\u6307\u5b9a GBK\u3002<\/p>\n<\/li>\n<li>\n<p>\u624b\u52a8\u6d4b\u8bd5&#xff1a;\u63d0\u4ea4 GBK \u5b57\u7b26&#xff0c;\u89c2\u5bdf\u662f\u5426\u51fa\u73b0\u4e71\u7801\u3002<\/p>\n<\/li>\n<h4 id=\"%F0%9F%8E%AF%20%E5%85%B3%E9%94%AE%E7%9F%A5%E8%AF%86%E7%82%B9\">&#x1f3af; \u5173\u952e\u77e5\u8bc6\u70b9<\/h4>\n<ul>\n<li>\n<p>\u7f16\u7801\u4e00\u81f4\u6027&#xff1a;\u5ba2\u6237\u7aef\u3001\u670d\u52a1\u5668\u3001\u6570\u636e\u5e93\u548c\u7f51\u9875\u7684\u7f16\u7801\u5fc5\u987b\u4e00\u81f4&#xff0c;\u5426\u5219\u53ef\u80fd\u5bfc\u81f4\u4e71\u7801\u3002<\/p>\n<\/li>\n<li>\n<p>GBK \u7279\u6027&#xff1a;GBK \u662f GB2312 \u7684\u6269\u5c55&#xff0c;\u652f\u6301\u7b80\u4f53\u4e2d\u6587\u5b57\u7b26&#xff0c;\u4f46\u4e0d\u652f\u6301\u90e8\u5206\u7e41\u4f53\u5b57\u548c\u7279\u6b8a\u7b26\u53f7\u3002<\/p>\n<\/li>\n<li>\n<p>\u6392\u67e5\u987a\u5e8f&#xff1a;\u5efa\u8bae\u4ece HTTP \u54cd\u5e94\u5934\u5f00\u59cb&#xff0c;\u9010\u6b65\u6df1\u5165\u5230\u6570\u636e\u5e93\u548c\u8868\u7ed3\u6784&#xff0c;\u6700\u540e\u901a\u8fc7\u624b\u52a8\u6d4b\u8bd5\u9a8c\u8bc1\u3002<\/p>\n<\/li>\n<li>\n<p>\u5de5\u5177\u652f\u6301&#xff1a;\u4f7f\u7528 curl\u3001\u6d4f\u89c8\u5668\u5f00\u53d1\u8005\u5de5\u5177\u3001SQL \u67e5\u8be2\u7b49\u5de5\u5177\u53ef\u63d0\u9ad8\u6392\u67e5\u6548\u7387\u3002<\/p>\n<\/li>\n<\/ul>\n<h4 id=\"%F0%9F%94%A5%20%E4%BC%98%E5%8C%96%E5%BB%BA%E8%AE%AE\">&#x1f525; \u4f18\u5316\u5efa\u8bae<\/h4>\n<ul>\n<li>\n<p>\u81ea\u52a8\u5316\u68c0\u6d4b&#xff1a;\u7f16\u5199\u811a\u672c&#xff08;\u5982 Python \u4f7f\u7528 requests \u5e93&#xff09;\u81ea\u52a8\u68c0\u67e5 HTTP \u54cd\u5e94\u5934\u548c\u7f51\u9875 &lt;meta&gt; \u6807\u7b7e\u3002<\/p>\n<\/li>\n<li>\n<p>\u7f16\u7801\u8f6c\u6362&#xff1a;\u5982\u679c\u53d1\u73b0\u7f16\u7801\u4e0d\u4e00\u81f4&#xff0c;\u53ef\u5728\u670d\u52a1\u5668\u7aef&#xff08;\u5982 PHP \u7684 mb_convert_encoding&#xff09;\u6216\u6570\u636e\u5e93\u7aef&#xff08;\u5982 MySQL \u7684 ALTER TABLE&#xff09;\u8c03\u6574\u7f16\u7801\u3002<\/p>\n<\/li>\n<li>\n<p>\u65e5\u5fd7\u8bb0\u5f55&#xff1a;\u8bb0\u5f55\u7f16\u7801\u76f8\u5173\u7684\u9519\u8bef\u65e5\u5fd7&#xff0c;\u4fbf\u4e8e\u5feb\u901f\u5b9a\u4f4d\u95ee\u9898\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\u548c\u6848\u4f8b&#xff0c;\u4f60\u53ef\u4ee5\u9ad8\u6548\u3001\u51c6\u786e\u5730\u5224\u65ad\u7f51\u7ad9\u670d\u52a1\u5668\u662f\u5426\u4f7f\u7528 GBK \u7f16\u7801&#xff0c;\u5e76\u9488\u5bf9\u53ef\u80fd\u7684\u95ee\u9898\u91c7\u53d6\u76f8\u5e94\u63aa\u65bd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.7k\u6b21\uff0c\u70b9\u8d5e33\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u672c\u6587\u7cfb\u7edf\u4ecb\u7ecd\u4e86\u5224\u65ad\u7f51\u7ad9\u670d\u52a1\u5668\u662f\u5426\u4f7f\u7528GBK\u7f16\u7801\u76845\u79cd\u65b9\u6cd5\uff1a1\uff09\u68c0\u67e5HTTP\u54cd\u5e94\u5934\u7684Content-Type\u5b57\u6bb5\uff1b2\uff09\u9a8c\u8bc1\u6570\u636e\u5e93\u8fde\u63a5\u914d\u7f6e\u4e2d\u7684\u5b57\u7b26\u96c6\u8bbe\u7f6e\uff1b3\uff09\u68c0\u67e5\u6570\u636e\u5e93\u8868\u53ca\u5b57\u6bb5\u7684DEFAULT CHARSET\uff1b4\uff09\u67e5\u770bHTML\u7684&lt;meta&gt;\u6807\u7b7e\u58f0\u660e\uff1b5\uff09\u901a\u8fc7\u4e2d\u6587\u8f93\u5165\u6d4b\u8bd5\u9a8c\u8bc1\u3002\u5173\u952e\u70b9\u5728\u4e8e\u786e\u4fdd\u5ba2\u6237\u7aef\u3001\u670d\u52a1\u5668\u3001\u6570\u636e\u5e93\u548c\u7f51\u9875\u7f16\u7801\u4e00\u81f4\uff0c\u907f\u514d\u51fa\u73b0\u4e71\u7801\u95ee\u9898\u3002\u6587\u7ae0\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u68c0\u67e5\u6b65\u9aa4\u3001\u539f\u7406\u8bf4\u660e\u3001\u5b9e\u9645\u6848\u4f8b\u53ca\u6ce8\u610f\u4e8b\u9879\uff0c\u5e76\u5efa\u8bae\u901a\u8fc7\u81ea\u52a8\u5316\u5de5\u5177\u68c0\u6d4b\u548c\u7f16\u7801\u8f6c\u6362\u7b49\u4f18\u5316\u63aa\u65bd\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u51c6\u786e\u8bc6\u522b\u548c\u89e3\u51b3GBK\u7f16\u7801\u76f8\u5173\u7684\u6280\u672f\u95ee\u9898<\/p>\n","protected":false},"author":2,"featured_media":46186,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4399,768,1816,87,1465,100,122,1685,211],"topic":[],"class_list":["post-46187","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-owasp-top--web","tag-sql","tag-87","tag-1465","tag-100","tag-122","tag-1685","tag-211"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5224\u65ad\u7f51\u7ad9\u670d\u52a1\u5668\u4f7f\u7528\u7684\u6570\u636e\u5e93\u7f16\u7801\u683c\u5f0f\u662f\u5426\u4e3a GBK - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/46187.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5224\u65ad\u7f51\u7ad9\u670d\u52a1\u5668\u4f7f\u7528\u7684\u6570\u636e\u5e93\u7f16\u7801\u683c\u5f0f\u662f\u5426\u4e3a GBK - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.7k\u6b21\uff0c\u70b9\u8d5e33\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u672c\u6587\u7cfb\u7edf\u4ecb\u7ecd\u4e86\u5224\u65ad\u7f51\u7ad9\u670d\u52a1\u5668\u662f\u5426\u4f7f\u7528GBK\u7f16\u7801\u76845\u79cd\u65b9\u6cd5\uff1a1\uff09\u68c0\u67e5HTTP\u54cd\u5e94\u5934\u7684Content-Type\u5b57\u6bb5\uff1b2\uff09\u9a8c\u8bc1\u6570\u636e\u5e93\u8fde\u63a5\u914d\u7f6e\u4e2d\u7684\u5b57\u7b26\u96c6\u8bbe\u7f6e\uff1b3\uff09\u68c0\u67e5\u6570\u636e\u5e93\u8868\u53ca\u5b57\u6bb5\u7684DEFAULT CHARSET\uff1b4\uff09\u67e5\u770bHTML\u7684&lt;meta&gt;\u6807\u7b7e\u58f0\u660e\uff1b5\uff09\u901a\u8fc7\u4e2d\u6587\u8f93\u5165\u6d4b\u8bd5\u9a8c\u8bc1\u3002\u5173\u952e\u70b9\u5728\u4e8e\u786e\u4fdd\u5ba2\u6237\u7aef\u3001\u670d\u52a1\u5668\u3001\u6570\u636e\u5e93\u548c\u7f51\u9875\u7f16\u7801\u4e00\u81f4\uff0c\u907f\u514d\u51fa\u73b0\u4e71\u7801\u95ee\u9898\u3002\u6587\u7ae0\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u68c0\u67e5\u6b65\u9aa4\u3001\u539f\u7406\u8bf4\u660e\u3001\u5b9e\u9645\u6848\u4f8b\u53ca\u6ce8\u610f\u4e8b\u9879\uff0c\u5e76\u5efa\u8bae\u901a\u8fc7\u81ea\u52a8\u5316\u5de5\u5177\u68c0\u6d4b\u548c\u7f16\u7801\u8f6c\u6362\u7b49\u4f18\u5316\u63aa\u65bd\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u51c6\u786e\u8bc6\u522b\u548c\u89e3\u51b3GBK\u7f16\u7801\u76f8\u5173\u7684\u6280\u672f\u95ee\u9898\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/46187.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-29T18:34:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183357-688914150ea80.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/46187.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/46187.html\",\"name\":\"\u5982\u4f55\u5224\u65ad\u7f51\u7ad9\u670d\u52a1\u5668\u4f7f\u7528\u7684\u6570\u636e\u5e93\u7f16\u7801\u683c\u5f0f\u662f\u5426\u4e3a GBK - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-29T18:34:05+00:00\",\"dateModified\":\"2025-07-29T18:34:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/46187.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/46187.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/46187.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5224\u65ad\u7f51\u7ad9\u670d\u52a1\u5668\u4f7f\u7528\u7684\u6570\u636e\u5e93\u7f16\u7801\u683c\u5f0f\u662f\u5426\u4e3a GBK\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5224\u65ad\u7f51\u7ad9\u670d\u52a1\u5668\u4f7f\u7528\u7684\u6570\u636e\u5e93\u7f16\u7801\u683c\u5f0f\u662f\u5426\u4e3a GBK - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/46187.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5224\u65ad\u7f51\u7ad9\u670d\u52a1\u5668\u4f7f\u7528\u7684\u6570\u636e\u5e93\u7f16\u7801\u683c\u5f0f\u662f\u5426\u4e3a GBK - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.7k\u6b21\uff0c\u70b9\u8d5e33\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u672c\u6587\u7cfb\u7edf\u4ecb\u7ecd\u4e86\u5224\u65ad\u7f51\u7ad9\u670d\u52a1\u5668\u662f\u5426\u4f7f\u7528GBK\u7f16\u7801\u76845\u79cd\u65b9\u6cd5\uff1a1\uff09\u68c0\u67e5HTTP\u54cd\u5e94\u5934\u7684Content-Type\u5b57\u6bb5\uff1b2\uff09\u9a8c\u8bc1\u6570\u636e\u5e93\u8fde\u63a5\u914d\u7f6e\u4e2d\u7684\u5b57\u7b26\u96c6\u8bbe\u7f6e\uff1b3\uff09\u68c0\u67e5\u6570\u636e\u5e93\u8868\u53ca\u5b57\u6bb5\u7684DEFAULT CHARSET\uff1b4\uff09\u67e5\u770bHTML\u7684&lt;meta&gt;\u6807\u7b7e\u58f0\u660e\uff1b5\uff09\u901a\u8fc7\u4e2d\u6587\u8f93\u5165\u6d4b\u8bd5\u9a8c\u8bc1\u3002\u5173\u952e\u70b9\u5728\u4e8e\u786e\u4fdd\u5ba2\u6237\u7aef\u3001\u670d\u52a1\u5668\u3001\u6570\u636e\u5e93\u548c\u7f51\u9875\u7f16\u7801\u4e00\u81f4\uff0c\u907f\u514d\u51fa\u73b0\u4e71\u7801\u95ee\u9898\u3002\u6587\u7ae0\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u68c0\u67e5\u6b65\u9aa4\u3001\u539f\u7406\u8bf4\u660e\u3001\u5b9e\u9645\u6848\u4f8b\u53ca\u6ce8\u610f\u4e8b\u9879\uff0c\u5e76\u5efa\u8bae\u901a\u8fc7\u81ea\u52a8\u5316\u5de5\u5177\u68c0\u6d4b\u548c\u7f16\u7801\u8f6c\u6362\u7b49\u4f18\u5316\u63aa\u65bd\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u51c6\u786e\u8bc6\u522b\u548c\u89e3\u51b3GBK\u7f16\u7801\u76f8\u5173\u7684\u6280\u672f\u95ee\u9898","og_url":"https:\/\/www.wsisp.com\/helps\/46187.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-29T18:34:05+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183357-688914150ea80.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/46187.html","url":"https:\/\/www.wsisp.com\/helps\/46187.html","name":"\u5982\u4f55\u5224\u65ad\u7f51\u7ad9\u670d\u52a1\u5668\u4f7f\u7528\u7684\u6570\u636e\u5e93\u7f16\u7801\u683c\u5f0f\u662f\u5426\u4e3a GBK - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-29T18:34:05+00:00","dateModified":"2025-07-29T18:34:05+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/46187.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/46187.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/46187.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5224\u65ad\u7f51\u7ad9\u670d\u52a1\u5668\u4f7f\u7528\u7684\u6570\u636e\u5e93\u7f16\u7801\u683c\u5f0f\u662f\u5426\u4e3a GBK"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/46187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=46187"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/46187\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/46186"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=46187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=46187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=46187"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=46187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}