开发者

Jekyll does not parse UTF-8

开发者 https://www.devze.com 2023-01-04 22:18 出处:网络
I created a page in notepad and selected UTF-8 as the encoding while saving. Jekyll does not parse this page. It renders the liquid extensions in the page as they are.

I created a page in notepad and selected UTF-8 as the encoding while saving. Jekyll does not parse this page. It renders the liquid extensions in the page as they are.

Now I saved the same page using ANSI encoding. Jekyll parses that easily and my site is up and开发者_开发百科 running. But it is limited only to ANSI and some characters appear as a question mark due to wrong encoding. I do not want to use ANSI instead of UTF-8 when the web fully supports it.


It may be due to the fact that Notepad inserts a byte order mark (BOM) at the beginning of UTF-8 documents, which may interfere with their processing (especially by tools that are aimed primarily at Unix). You could try using another text editor (or stripping out the BOM with another tool may work).

0

精彩评论

暂无评论...
验证码 换一张
取 消