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

  • SEARCH
  • Home
  • 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 8807177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:18:22+00:00 2026-06-14T02:18:22+00:00

This is a strange bit, When I run localhost:3000 it prompts me with error

  • 0

This is a strange bit, When I run localhost:3000 it prompts me with error listed below

Encoding::CompatibilityError in Home#index

incompatible character encodings: Windows-1252 and UTF-8

17: <%= render 'layouts/header'%>
18:
19: <%= yield %>
20: <%= render 'layouts/footer' %>
21: </body>
22: </html>

but it renders other pages if I do localhost:3000/en/#actionName.

Since, localhost:3000 renders the index.html.erb, only for testing purposes I deleted the contents of index.html.erb; it rendered the layouts. So, what is wrong with the content of the index.html.erb page? everything looks okay to me, also I downloaded the content of index.html.erb from the server (the working version) it still gives me the same error. Need some guidance where I could have gone wrong. I tried the solution mentioned in this link Ruby on Rails 3, incompatible character encodings: UTF-8 and ASCII-8BIT with i18n but with no luck at all.

Thanks in advance.

            =====================  **UPDATE** ======================

why it did that it has been listed below: However another question pops in, why adding those source code generate such errors only for index.html.erb.

  • 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-14T02:18:23+00:00Added an answer on June 14, 2026 at 2:18 am

    i have figured out the issue, the problem was i added the following source code listed below in (app/view/layouts/) _footer.html.erb

    <p style="float:left;text-align:none;padding:0px;font-size:8px;font-stretch:6px; ">
        <select name="language" onchange="location=this.options[this.selectedIndex].value;"   autocomplete="off">
            <option value=""></option>
            <option value="/en/faq">english</option>
            <option value="/es/faq">español</option>
            <option value="/de/faq">germany</option>
            <option value="/fr/faq">french</option>
            <option value="/it/faq">italy</option>
        </select>
    </p>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I came across this strange bit of CSS tonight... display: inline !ie; Now I've
I am a bit puzzled by this strange behavior on CentOs 5.4 when starting
This problem is a bit strange. Why is showed Is not null, if the
In the following code, this line is a bit strange to me: var x=document.forms[myForm][fname].value;
I'm getting this strange error message when trying to clone or pull from git.
This is a bit of a strange one, but I've been struggling for a
This is a little bit of a strange question, but I have a bunch
I've run into a bit of a strange situation. I'm trying to parse measurements
I am getting this strange behavior when making a Facetime call. The number is
I have this strange behavior in my JSP page: I have two Integer variables

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.