jekyll: Encoding::UndefinedConversionError: "\xC3" from ASCII-8BIT to UTF-8

My Environment

Software Version(s)
Operating System
jekyll Latest

Expected Behaviour

I would expect my site to build correctly using Github Actions also, as it builds correctly locally and on Travis CI.

Current Behavior

I am trying to use Github Actions to build my site (https://github.com/lsolesen/larsolesen-dk-jekyll) with the latest Jekyll. However, I encounter the following error:

2020-04-14T06:13:01.2803271Z bundler: failed to load command: jekyll (/usr/local/bundle/bin/jekyll)
2020-04-14T06:13:01.2806628Z Encoding::UndefinedConversionError: "\xC3" from ASCII-8BIT to UTF-8

Full log of the deploy action: https://gist.github.com/lsolesen/084c17e847fed182b591e1e96d0d2a83

However, it builds correctly locally and on Travis - https://travis-ci.org/github/lsolesen/larsolesen-dk-jekyll/jobs/674717849

Is there anything I am missing?

Code Sample

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

The following is a temporary monkey-patch that modifies a Jekyll core class. You can paste the code into a *.rb file in a _plugins directory at the root of your site and have GitHub Actions build the site with Jekyll 4.0. Hopefully, it should tell (us) which file exactly.

If not, I’m out of ideas for the time being. Sorry.

module Jekyll
  class URL
    def self.unescape_path(path)
      path = path.encode("utf-8")
      return path unless path.include?("%")

      Addressable::URI.unencode(path)
    rescue Exception => err
      Jekyll.logger.warn "URL Error:", path
      Jekyll.logger.warn "URL Error:", err
      raise err
    end
  end
end