Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on line 1: Invalid US-ASCII character "\xE3" #46

Closed
leibnizli opened this issue Apr 28, 2014 · 5 comments
Closed

Error on line 1: Invalid US-ASCII character "\xE3" #46

leibnizli opened this issue Apr 28, 2014 · 5 comments

Comments

@leibnizli
Copy link

There was an error beautifying your Sass:

Error on line 1: Invalid US-ASCII character "\xE3"
Use --trace for backtrace
Use --trace for backtrace.

@badsyntax
Copy link
Owner

Have you specified the charset to be utf-8?

Like so, at the top of your sass file:

@charset "UTF-8";

@leibnizli
Copy link
Author

I am grateful
Has been resolved
Because the end of the line one more space, space coding problems

@badsyntax
Copy link
Owner

Hi @Stormtea123

Apologies this is a bit late, are you able to describe the problems you had more clearly?

@leibnizli
Copy link
Author

The problem has been resolved

@badsyntax
Copy link
Owner

I noticed that sometimes I receive the error, even though I defined the charset.

I've read through the sass docs again, and it states that the @charset rule must be placed at the top of the file before any comments or whitespace: http://sass-lang.com/documentation/file.SASS_REFERENCE.html#encodings

So yea, whitespace can break this. Glad it's working correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants