Ian McNally

SASS Invalid US-ASCII character

July 28, 2014

Yikes! Today, I was getting a SASS error:

Syntax error: Invalid US-ASCII character "\xE2"
    on line 128 of app/stylesheets/pages/_toggle.sass

For using:

&:after
  content: "•"

At the top of where I used it (_toggle.sass), I added:

@charset "UTF-8"

And compilation is working again.

Props.


Ian McNally

Hey, I'm Ian. I build websites and write about what I learn as I go. Follow me on Twitter.