{"id":31,"date":"2008-04-19T18:33:28","date_gmt":"2008-04-19T10:33:28","guid":{"rendered":"http:\/\/tmp.xujiwei.com\/blog\/?p=31"},"modified":"2010-01-28T21:15:39","modified_gmt":"2010-01-28T13:15:39","slug":"bom-cause-layout-problem","status":"publish","type":"post","link":"https:\/\/xujiwei.com\/blog\/2008\/04\/bom-cause-layout-problem\/","title":{"rendered":"BOM\u5f15\u8d77\u7684\u7f51\u9875\u5e03\u5c40\u6df7\u4e71"},"content":{"rendered":"<p>\u9875\u9762\u7684\u4e0a\u90e8\u6bd4\u6b63\u5e38\u72b6\u6001\u4e0b\u591a\u51fa\u4e00\u5757\u7a7a\u767d\uff0c\u800c\u4e14\u6574\u4e2a\u9875\u9762\u7684\u5e03\u5c40\u5b8c\u5168\u662f\u6df7\u4e71\u7684\u3002<\/p>\n<p>\u4e00\u5f00\u59cb\u4ee5\u4e3a\u662f\u670d\u52a1\u5668\u4e0a\u6587\u4ef6\u7248\u6bd4\u672c\u5730\u7684\u6587\u4ef6\u7248\u672c\u65e7\u7684\u539f\u56e0\uff0c\u6bd4\u5bf9\u4e86\u4e00\u756a\u6ca1\u627e\u5230\u4e0d\u540c\u7684\uff0c\u7136\u540e\u60f3\u5230\u4f1a\u4e0d\u4f1a\u662f\u6587\u4ef6\u7f16\u7801\u7684\u95ee\u9898\u3002<\/p>\n<p>\u5207\u6362\u5230Zend\u00a0Studio\uff0c\u627e\u5230\u9996\u9875\u7684\u6a21\u677f\u6587\u4ef6\uff0c\u5c5e\u6027\u91cc\u4e00\u770b\uff0c\u7f16\u7801UTF-8\uff0c\u5bf9\u7684\uff0c\u4f46\u662f\u4e0b\u9762\u4e00\u884c\u5b57\u5f15\u8d77\u4e86\u6211\u7684\u6ce8\u610f\uff0c\u201cByte\u00a0Order\u00a0Mark\u00a0is\u00a0UTF-8\u00a0(BOM)\u201d\uff0c\u4e8e\u662f\u5c31\u60f3\u662f\u4e0d\u662f\u8fd9\u4e2a\u73a9\u610f\u5f15\u8d77\u7684\u5e03\u5c40\u6df7\u4e71\u3002<\/p>\n<p>\u6253\u5f00EditPlus\uff0c\u8bbe\u7f6e\u6587\u4ef6\u4fdd\u5b58\u9009\u9879\u4e3a\u4e00\u76f4\u5220\u9664BOM\uff0c\u6253\u5f00\u9996\u9875\u6a21\u677f\uff0c\u4fdd\u5b58\uff0c\u4e0a\u4f20\uff0c\u6d4b\u8bd5\uff0c\u6ca1\u6709\u95ee\u9898\uff01<\/p>\n<p>\u770b\u6765\u679c\u7136\u662fBOM\u7684\u95ee\u9898\u4e86\uff0c\u63a5\u4e0b\u6765\u7684\u4e8b\u5c31\u6bd4\u8f83\u673a\u68b0\u4e86\uff0c\u5728\u6a21\u677f\u6587\u4ef6\u91cc\u770b\u54ea\u4e9b\u662f\u5e26\u4e86BOM\u7684\uff0c\u76f4\u63a5\u5230EditPlus\u91cc\u8d70\u4e00\u906d\u5c31\u884c\u4e86\u3002<\/p>\n<p>\u89e3\u51b3\u4e86\u8fd9\u4e2a\u95ee\u9898\u624d\u60f3\u8d77\u6765\uff0c\u6709\u4e9b\u6a21\u677f\u4e3a\u4e86\u8f6c\u6362\u6210UTF-8\u7f16\u7801\u7684\uff0c\u5c31\u7528\u8bb0\u4e8b\u672c\u6253\u5f00\u6587\u4ef6\uff0c\u7136\u540e\u53e6\u5b58\u4e3aUTF-8\u7f16\u7801\u4e86\uff0c\u4f46\u662f\u8bb0\u4e8b\u672c\u662f\u4f1a\u7ed9UTF-8\u7f16\u7801\u7684\u6587\u4ef6\u52a0\u4e0aBOM\u7684\uff0c\u56e0\u6b64\u5c31\u5f15\u8d77\u4e86\u9996\u9875\u5e03\u5c40\u7684\u6df7\u4e71\u3002<\/p>\n<p>\u55ef\uff0c\u95ee\u9898\u89e3\u51b3\uff0c\u5c31\u8fd9\u6837\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9875\u9762\u7684\u4e0a\u90e8\u6bd4\u6b63\u5e38\u72b6\u6001\u4e0b\u591a\u51fa\u4e00\u5757\u7a7a\u767d\uff0c\u800c\u4e14\u6574\u4e2a\u9875\u9762\u7684\u5e03\u5c40\u5b8c\u5168\u662f\u6df7\u4e71\u7684\u3002 \u4e00\u5f00\u59cb\u4ee5\u4e3a &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/xujiwei.com\/blog\/2008\/04\/bom-cause-layout-problem\/\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13,11],"tags":[33,31,32],"_links":{"self":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/31"}],"collection":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":0,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}