ahmadajmi / type

🎉 Minimal and Clean Free Jekyll Theme
https://type-jekyll.aspirethemes.com/
MIT License
212 stars 141 forks source link

Liquid error (line 16): Invalid US-ASCII character "\xE2" on line 5 #3

Closed kulkarniamit closed 5 years ago

kulkarniamit commented 5 years ago

Error in Docker environment

OS

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"

Error during first run

$ git clone https://github.com/aspirethemes/type.git
Cloning into 'type'...
remote: Enumerating objects: 174, done.
remote: Total 174 (delta 0), reused 0 (delta 0), pack-reused 174
Receiving objects: 100% (174/174), 614.92 KiB | 4.84 MiB/s, done.
Resolving deltas: 100% (48/48), done.

$ bundle install
Using public_suffix 2.0.5
...
Using nuggets 1.5.0
Using jekyll-tagging 1.1.0
Bundle complete! 4 Gemfile dependencies, 22 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

$ bundle exec jekyll serve
Configuration file: /home/alice/tmp/type/_config.yml
Configuration file: /home/alice/tmp/type/_config.yml
            Source: /home/alice/tmp/type
       Destination: /home/alice/tmp/type/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
  Liquid Exception: Liquid error (line 16): Invalid US-ASCII character "\xE2" on line 5 in /_layouts/default.html
jekyll 3.4.3 | Error:  Liquid error (line 16): Invalid US-ASCII character "\xE2" on line 5
aggvinay commented 5 years ago

@kulkarniamit Following are the steps to fix this issue:

  1. Open you code in the docker container
  2. run command grep -r -n "["$'\xE2'"]" *
  3. Change the characters(which appears in the grep command) to your normal character (UTF - 8)
ahmadajmi commented 5 years ago

4