Closed GuillermoFidalgo closed 2 years ago
Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/style.scss': Invalid US-ASCII character "\xE2" on line 5 jekyll 3.9.0 | Error: Invalid US-ASCII character "\xE2" on line 5
I think Jekyll complains about style.scss
file that you added to assets/css
directory -- check its line 5 or delete it, if you don't need it.
\xe2
is most likely a "smart quotation mark" that should be replaced with '
There is no style.scss
here. I'm not sure if this means that it's looking somewhere else.
guillermofidalgo@Guillermos-MacBook-Pro hsf-training-matplotlib % ls -ahltr assets/css/
total 1296
-rw-r--r-- 1 guillermofidalgo staff 25K Oct 18 12:42 bootstrap-theme.css
-rw-r--r-- 1 guillermofidalgo staff 47K Oct 18 12:42 bootstrap-theme.css.map
-rw-r--r-- 1 guillermofidalgo staff 143K Oct 18 12:42 bootstrap.css
-rw-r--r-- 1 guillermofidalgo staff 382K Oct 18 12:42 bootstrap.css.map
-rw-r--r-- 1 guillermofidalgo staff 23K Oct 18 12:42 katex.min.css
-rw-r--r-- 1 guillermofidalgo staff 10K Oct 18 12:42 lesson.scss
drwxr-xr-x 9 guillermofidalgo staff 288B Oct 18 12:42 ./
-rw-r--r-- 1 guillermofidalgo staff 4.3K Oct 18 12:42 syntax.css
drwxr-xr-x 7 guillermofidalgo staff 224B Oct 18 12:42 ../
I cloned your lesson and was able to build/serve a website without an issue. A few things to try:
make clean
then make serve
LC_ALL
and/or LANG
set? What does locale charmap
return?
$ locale
LANG=""
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
$ locale charmap US-ASCII
Try setting LANG
to something.UTF-8
. For example, in my case I have en_US.UTF-8
.
If changing LANG
doesn't help, try setting LC_ALL
(to en_US.UTF-8
or anything else.UTF-8) instead.
Changing LANG
worked 😄
Thank you so much! I think I know why this was not set or changed.
Some time ago I was trying to install a package on a remote machine and it used to complain about ascii
encoding.
Following a few forum posts I ended up unchecking the setting on the Mac terminal under "Advanced" that says "Set locale enviroment variables on startup".
That fixed my issue back then but must have brought up this issue now. Thanks again!
Thanks for the report, @GuillermoFidalgo. I think this is something we might want to tackle in the Makefile. By the way, I would recommend using make serve
and make site
instead of invoking Bundler directly.
Thanks for the tip. I did it both ways and same output arose. I just happened to paste it with bundler here
Hello, I'm having an issue when trying to serve a project (In my case it's https://github.com/GuillermoFidalgo/hsf-training-matplotlib) I get the following
(A bunch of output)
(Some more lines)
(you get the idea)
I'm wondering if anyone has had this issue before and how I could go about solving this?\
I've tried reinstalling jekyll and ruby but does not seem to change anything.
I've reinstalled the gems and no luck. Any ideas?