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 8797281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:49:21+00:00 2026-06-13T23:49:21+00:00

rails app in development mode gives internal server error and not the usual error

  • 0

rails app in development mode gives internal server error and not the usual error page with trace. no info in log/development.log either. no matter what server. on any request.

What is wrong?

  • 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-13T23:49:22+00:00Added an answer on June 13, 2026 at 11:49 pm

    syntax error caused by invalid character coding under ruby 1.9. most likely you used utf-8 when ruby (and rails) expects ASCII by default in source files. (yeah, right?)

    solution is to use BOM http://www.w3.org/International/questions/qa-byte-order-mark or put

    # encoding: UTF-8
    

    or

    # coding: UTF-8
    

    on top of files in utf-8.

    To set UTF-8 globally, you can put

    config.encoding = "utf-8"
    

    in your config/application.rb which is equivalent to

    Encoding.default_external = Encoding::UTF_8
    Encoding.default_internal = Encoding::UTF_8
    

    which in turn is the equivalent to putting:

    # encoding: UTF-8
    

    or a BOM at the top of every file.

    This allows utf-8 globally on all files of the rails app.

    If you want a global option on all ruby files, you can use the -E or -K ruby option and set it via the RUBYOPT environment variable, like:

    export RUBYOPT=-Ku
    

    or

    export RUBYOPT='-E utf-8:utf-8'
    

    see http://www.manpagez.com/man/1/ruby/
    see http://zargony.com/2009/07/24/ruby-1-9-and-file-encodings

    There’s also gem that sets the magic comment on top on every file that needs it in a Rails project : https://github.com/m-ryan/magic_encoding

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

Sidebar

Related Questions

In a rails (2.3.8) app, my server log in development mode shows lines like
I'm using webrick to run my rails app in development mode. The page includes
Once I start coding a rails app, I am by default in development mode.
today I uploaded my app to server, and after seting it into development mode,
My Rails app runs fine in development mode (without caching) but in production has
I'm running my rails 3.1 app in development mode with cache disabled, but it's
My rails app is working just fine when it is in development mode however
How can I remove code when my Rails app is in development mode? For
In my rails app I'm displaying some posts using nested loops. In development mode,
I'm beginning development on a Rails app and before I start heading in the

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.