Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9141923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:42:34+00:00 2026-06-17T09:42:34+00:00

I have a rails app that is getting a weird error when I try

  • 0

I have a rails app that is getting a weird error when I try to run rake assets:precompile. It looks like this:

rake aborted!
Invalid US-ASCII character "\xE2"
  (in /Users/lee/Code/draper/app/assets/stylesheets/application.css.scss)
(sass):9

I’m not sure where an invalid character might have slipped into my code. I’m using Twitter Bootstrap (boostrap-sass gem) and my bootstrap_and_overrides.css.scss file seems to be the culprit. I’ve already tried recreating this file from scratch in text mate to get any weird characters out and that didn’t work. The only thing that seems to work is adding this to the top of my bootstrap_and_overrides.css.scss:

@charset "UTF-8";

That allows me to run rake assets:precompile and then deploy to Heroku, but that seems like a hack and a dirty fix. I can deploy other apps to Heroku that use bootstrap-sass just fine and Heroku is able to run rake assets:precompile when deploying. Right now the only way to get around it is to include the @charset "UTF-8"; and then run rake assets:precompile locally before deploying to Heroku so that it skips that step during deployment.

I can’t figure out where I went wrong with this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:42:35+00:00Added an answer on June 17, 2026 at 9:42 am

    Check your CSS files. The character \xE2 usually correlates to a double quote character that’s not part of the ASCII character set. In an editor they often look like a more slanted double quote. “mystring” vs "mystring"

    Using the @charset declaration isn’t a hack, but if you don’t need to be using a UTF-8 character, you’re probably better off removing it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a hash being posted to my Rails app that looks like this:
I have a rails app that has asynchronous processing, and I'm having trouble getting
I have a rails app that is combining javascript assets using Jammit , and
I'm getting an error in my Rails 3 app that I can't pinpoint the
So I'm getting this error in my rails app: No route matches {:action=>edit, :controller=>parties}
I have a rails app and I keep getting a weird behavior with pjax
Hey. So I have a Rails app that's getting deployed to a production machine
I have a Rails app that is served by Apache and Passenger, using only
I have a Rails app that does everything I need it to do via
I have a rails app that is using Devise perfectly in development. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.