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

Comments

Projects
None yet
6 participants
@morgoth

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

This comment has been minimized.

Show comment
Hide comment
@rstacruz

rstacruz May 25, 2011

Same, using compass 0.11.1 and haml-3.0.18 here.

rstacruz commented May 25, 2011

Same, using compass 0.11.1 and haml-3.0.18 here.

@software-project

This comment has been minimized.

Show comment
Hide comment
@software-project

software-project Jun 7, 2011

Same for compass 0.11.1 and 3.2.0.alpha.3

software-project commented Jun 7, 2011

Same for compass 0.11.1 and 3.2.0.alpha.3

@dblock

This comment has been minimized.

Show comment
Hide comment
@dblock

dblock Jun 9, 2011

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

dblock commented Jun 9, 2011

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

@wprater

This comment has been minimized.

Show comment
Hide comment
@wprater

wprater Jun 13, 2011

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

wprater commented Jun 13, 2011

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

@rstacruz

This comment has been minimized.

Show comment
Hide comment
@rstacruz

rstacruz Jun 14, 2011

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

Encoding.default_encoding = 'utf-8'

rstacruz commented Jun 14, 2011

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

Encoding.default_encoding = 'utf-8'
@morgoth

This comment has been minimized.

Show comment
Hide comment
@morgoth

morgoth Jun 14, 2011

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

morgoth commented Jun 14, 2011

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

@morgoth morgoth closed this Jun 14, 2011

@wprater

This comment has been minimized.

Show comment
Hide comment
@wprater

wprater Jun 14, 2011

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

wprater commented Jun 14, 2011

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

@markushausammann

This comment has been minimized.

Show comment
Hide comment
@markushausammann

markushausammann Mar 9, 2012

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

markushausammann commented Mar 9, 2012

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