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

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")

你可能感兴趣的:(坑)