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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:47:36+00:00 2026-05-11T07:47:36+00:00

I just installed Apache 2, Phusion Passenger and Rails 2.2.2 on Centos 5.2 64

  • 0

I just installed Apache 2, Phusion Passenger and Rails 2.2.2 on Centos 5.2 64 bit server. My mysql database is latin1, and my setup works on php server, and my rails setup is also working besides character encoding with the data from database.

I have set

meta http-equiv=’Content-Type’ content=’text/html;charset=iso8859-1′ (omitting the brackets)

Inside the header, but when I look at the source of the page I see the header is correct, but when I run

HEAD http://servername/posts/show/2

I get utf-8 in the charset.

In short, I don’t get unicode characters in the data from database, but unicode characters in the posts.html.erb do show up correctly.

So where is this header set, and what am I doing incorrectly ?

Edit, just adding the header I get by running HEAD

Cache-Control: private, max-age=0, must-revalidate Connection: close Date: Tue, 17 Feb 2009 16:59:32 GMT ETag: ‘f242d9af7c676eb3f7b92f4c4f4b16d3’ Server: Apache/2.2.3 (CentOS) Content-Length: 296 Content-Type: text/html; charset=utf-8 Client-Date: Tue, 17 Feb 2009 16:59:32 GMT Client-Peer: Client-Response-Num: 1 Set-Cookie: _html_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D–455dc90f774060b52ea418446bdf2774beea16d5; path=/; HttpOnly X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.0.6 X-Runtime: 21ms

Regards,

Trausti

  • 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. 2026-05-11T07:47:37+00:00Added an answer on May 11, 2026 at 7:47 am

    To answer my own question. I was told that by adding this text

    ActionController::Base.default_charset=(‘ISO-8859-1’)

    into envrionment.rb would fix the issue, and it does. It fixes my issue

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

Sidebar

Related Questions

I have just installed CentOS, Apache and PHP. When I visit my site http://example.com/myapp/
I have just installed Debian Lenny with Apache, MySQL, and PHP and I am
I'm working on Windows with Apache and PHP. I just installed MySQL, configured it,
Just installed and configured mod_python 3.2.8 on a CentOS 5 (Apache 2.2.3) server with
I am just beginning with Joomla on a linux fedora server (running apache,mysql,php), running
I just installed Apache and PHP on my computer to be able to run
I just installed the apache 2.2 http server and I get this error message
I have an Ubuntu 10.04 server running Apache with phusion passenger that I've been
I've just installed APC to cache my PHP code on my Ubuntu VPS server.
I have just installed Rails Ready script from GitHub on my Ubuntu Server 10.04.

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.