[bug] Liquid Exception: incompatible character encodings: GBK and UTF-8 in /_layouts/default.html

版权声明:Copyright reserved to Hazekiah Wang ([email protected]) https://blog.csdn.net/u010909964/article/details/85963586

Liquid Exception: incompatible character encodings: GBK and UTF-8 in /_layouts/default.html

I encountered this error when setting up my Jekyll site.
According to this post, I modified the file [\the\installation\path\to\your\ruby]\lib\ruby\gems\2.5.0\gems\jekyll-3.7.4\lib\jekyll\convertible.rb at line 43 with the following code

self.content = File.read(@path || site.in_source_dir(base, name),
                                 Utils.merged_file_read_opts(site, opts),:encoding=>"utf-8")

猜你喜欢

转载自blog.csdn.net/u010909964/article/details/85963586
今日推荐