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

Encoding error on compass font-face mixin #377

Closed
morgoth opened this issue May 7, 2011 · 8 comments
Closed

Encoding error on compass font-face mixin #377

morgoth opened this issue May 7, 2011 · 8 comments

Comments

@morgoth
Copy link

morgoth commented May 7, 2011

I'm getting error similar to: #196

My stacktrace:

Sass::SyntaxError - Invalid US-ASCII character "\xE2":
/app/.bundle/gems/ruby/1.9.1/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/css3/_font-face.scss:40
/app/.bundle/gems/ruby/1.9.1/gems/compass-0.11.1/frameworks/compass/stylesheets/compass/_css3.scss:14
/app/views/stylesheets/screen.sass:11
/app/.bundle/gems/ruby/1.9.1/gems/sass-3.1.1/lib/sass/engine.rb:350:in `block in check_encoding!'
/app/.bundle/gems/ruby/1.9.1/gems/sass-3.1.1/lib/sass/util.rb:440:in `rescue in block in check_encoding'
/app/.bundle/gems/ruby/1.9.1/gems/sass-3.1.1/lib/sass/util.rb:437:in `block in check_encoding'
/app/.bundle/gems/ruby/1.9.1/gems/sass-3.1.1/lib/sass/util.rb:436:in `each'
/app/.bundle/gems/ruby/1.9.1/gems/sass-3.1.1/lib/sass/util.rb:436:in `each_with_index'
/app/.bundle/gems/ruby/1.9.1/gems/sass-3.1.1/lib/sass/util.rb:436:in `check_encoding'
/app/.bundle/gems/ruby/1.9.1/gems/sass-3.1.1/lib/sass/util.rb:489:in `check_sass_encoding'
/app/.bundle/gems/ruby/1.9.1/gems/sass-3.1.1/lib/sass/engine.rb:349:in `check_encoding!'
/app/.bundle/gems/ruby/1.9.1/gems/sass-3.1.1/lib/sass/engine.rb:316:in `_to_tree'
/app/.bundle/gems/ruby/1.9.1/gems/sass-3.1.1/lib/sass/engine.rb:250:in `to_tree'

You can find source of this app on: https://github.com/morgoth/bridge-score
Not really sure if this is compass or sass problem.

@rstacruz
Copy link

Same, using compass 0.11.1 and haml-3.0.18 here.

@software-project
Copy link

Same for compass 0.11.1 and 3.2.0.alpha.3

@dblock
Copy link

dblock commented Jun 9, 2011

I think the problem is the default character encoding. See https://github.com/nex3/haml/issues/269.

@wprater
Copy link

wprater commented Jun 13, 2011

Im getting this same issue while using Ruby 1.9, rvm, and pow.

@rstacruz
Copy link

Fixed it by adding this to my app's initializers:

Encoding.default_encoding = 'utf-8'

@morgoth
Copy link
Author

morgoth commented Jun 14, 2011

@rstacruz you mean: Encoding.default_external
Yes, this fixes problem.

@morgoth morgoth closed this as completed Jun 14, 2011
@wprater
Copy link

wprater commented Jun 14, 2011

The issue must be with rvm then, since the Encoding get reset out of my environment.

@markushausammann
Copy link

Had a similar problem and solved it by adding @charset "UTF-8"; to my font partial.

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

No branches or pull requests

6 participants