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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:35:19+00:00 2026-05-26T04:35:19+00:00

On the server of my client, when I browse the application, the characters are

  • 0

On the server of my client, when I browse the application, the characters are wrong, because all of the Browsers (Firefox, Chrome, IE) decode the page as ISO-8859-1 instead of UTF-8. Local works great, and on my server works fine too.

I have an application developed with cakePHP 1.3.12:

  • The default encoding of all files is UTF-8 without BOM.
  • All pages has meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
  • In core.php

    Configure::write('App.encoding', 'UTF-8');
    
  • In database.php

    var $default = array(
        'driver' => 'mysql',
        'persistent' => false,
        'host' => 'localhost',
        'login' => 'aaa',
        'password' => 'aaa',
        'database' => 'aaa',
        'prefix' => 'app_',
        'encoding' => 'utf8'
    );
    
  • The database, tables and fields collation is utf8_unicode_ci

I also put on the beginning of bootstrap.php:

echo mb_internal_encoding();

…and returns ISO-8859-1, so I put…

mb_internal_encoding('UTF-8');

…but nothing change.

The server that work bad has PHP 5.2.16. I think it’s a module or option on the client server, because local and in my server works fine.

Any idea is appreciated.

  • 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-05-26T04:35:20+00:00Added an answer on May 26, 2026 at 4:35 am

    I solved the problem by putting in the first line of app/config/bootstrap.php file:

    header('Content-Type: text/html; charset=utf-8');
    

    Simple and it even seems obvious, but in this hosting, the cakePHP application did not work as expected. The response header always answer Content-Type ISO-8859-1. Now with this change, it answered UTF-8.

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

Sidebar

Related Questions

For a client server application, I'd like to display content with a web browser
We have a Server/Client cybercafe management application which used to work fine on Windows
I wrote a server-client rmi application and I'm using MacOsX and Ubuntu laptops to
I have a server-client application [TCP sockets, .NET 4.0].. the application about : do
I'm developing a server-client application. The server listens on some port (ex : 9090).
I'm developing a server-client application that uses 3 ports [TCP SOCKET .Net 4.0].. So
I made server/ client application in WCF. How get count of connected clients? And
In general chat application, client's browser always poll to server to check for new
I am making one application in which I want to browse all the albums
I have a client/server application through windows azure relaying. This works well using a

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.