{"id":10595,"date":"2017-08-29T22:48:56","date_gmt":"2017-08-30T05:48:56","guid":{"rendered":"http:\/\/www.jlao.net\/?p=10595"},"modified":"2019-08-17T10:20:08","modified_gmt":"2019-08-17T17:20:08","slug":"65279-is-the-culprit-for-mysterious-white-gaps","status":"publish","type":"post","link":"https:\/\/www.jlao.net\/en\/technology\/10595\/","title":{"rendered":"&#038;#65279 is the culprit for mysterious white gaps"},"content":{"rendered":"<p>I was coding html with Visual studio, and became so frustrated that CSS sometimes didn&#8217;t work and there were some mysterious white gaps.<\/p>\n<p>After struggling for hours I noticed that there were some &#8220;<code class=\"EnlighterJSRAW\">&amp;#65279<\/code>&#8221; in the code.<\/p>\n<p>These characters are byte order marks (BOMs), aka &#8220;zero width no-break space&#8221;, which are totally invisible in the editor (but if you open it in Word and show the hidden marks, they&#8217;ll show). In Word they can be replaced with ^u8520.<\/p>\n<p>Visual Studio saves UTF-8 files \u201cwith signature\u201d by default, which also saves the BOM characters.<\/p>\n<p>The remedy is to choose the encoding &#8220;UTF-8 without signature&#8221;.<\/p>","protected":false},"excerpt":{"rendered":"<p>I was coding html with Visual studio, and became so frustrated that CSS sometimes didn&#8217;t work and there were some mysterious white gaps. After struggling for hours I noticed that there were some &#8220;&amp;#65279&#8221; in the code. These characters are byte order marks (BOMs), aka &#8220;zero width no-break space&#8221;, which are totally invisible in the &hellip; <a href=\"https:\/\/www.jlao.net\/en\/technology\/10595\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">&#038;#65279 is the culprit for mysterious white gaps<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-10595","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/posts\/10595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/comments?post=10595"}],"version-history":[{"count":0,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/posts\/10595\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/media?parent=10595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/categories?post=10595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jlao.net\/en\/wp-json\/wp\/v2\/tags?post=10595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}