Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Scss encountered an error while converting 'assets/css/style.scss' #185

Open
benisameme opened this issue Sep 28, 2017 · 5 comments
Open

Comments

@benisameme
Copy link

Hey,
I'm getting an error with my build, what am I doing wrong?
Configuration file: /builds/benisameme/test-project/_config.yml Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly. Source: /builds/benisameme/test-project Destination: public Incremental build: disabled. Enable with --incremental Generating... Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/style.scss': Invalid US-ASCII character "\xE2" on line 5 jekyll 3.5.2 | Error: Invalid US-ASCII character "\xE2" on line 5
Full log: https://gitlab.com/benisameme/test-project/-/jobs/34394548
Repo: https://gitlab.com/benisameme/test-project/tree/master
assets/css/main.scss: https://gitlab.com/benisameme/test-project/blob/master/assets/css/main.scss

@mmistakes
Copy link
Owner

Looks like an encoding issue. Probably has more to do with how you have your Ruby environment setup than anything related to the theme's files.

Give this thread on jekyll/jekyll a look.

@benisameme
Copy link
Author

Alright, Thanks!
(sorry for the late reply)

@winterjung
Copy link

I encountered the same issue and solved to create style.scss file filled below content in assets/css folder.

---
---

@charset "UTF-8";

dltj added a commit to dltj/dltj-blog that referenced this issue Jan 11, 2018
dltj added a commit to dltj/dltj-blog that referenced this issue Jan 11, 2018
@dltj
Copy link
Sponsor

dltj commented Jan 11, 2018

My jekyll build is being done by AWS CodeBuild, and I found I needed to add these lines to the buildspec.yml file:

  pre_build:
    commands:
      - export LC_ALL="C.UTF-8"
      - export LANG="en_US.UTF-8"
      - export LANGUAGE="en_US.UTF-8"

@floatingpurr
Copy link

Same problem here with a post-receive hook which had ever worked fine. I reported some details on Stackoverflow.

I solved by adding at the top of my hook.

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

Not sure it is the best option.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

5 participants