Browser detects ISO-8859-1 encoding on UTF-8 cakePHP app?

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

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.

You could try checking if the . Htaccess file on the server has something like this added : AddType 'text/html; charset=ISO-8859-1' html Mime type could be different and some variatons in syntax exists, but it would look similar. This would overwrite the files charset with the global charset set in .htaccess.

No, the root . Htaccess have AddDefaultCharset utf-8 – matiasb Oct 6 at 22:48 There should'nt really be any other files on the serverside that could cause this, so your probably missing something somewhere, but I can't really understand exactly where that could be, looks like you've covered all the bases. Luckily there are smarter people then me on here, so hopefully one of those people will know where to look.

If it's a shared webserver you could check with the host to make sure it's not something on their side. – adeneo Oct 6 at 22:57 If I missing something, In that case the app don't work local and on the other server. But it works.It must be something in my client server.

Thanks anyway. – matiasb Oct 6 at 23:05 Your probably right, but could be anything? The client server could have Apache set up differently, be using a different PHP version, maybe suPHP, and a missing charset declaration could create the problem on the client server and not on your local server.

It could also be the host has done something wrong in config files for you webserver, so contact them and ask if they can check their side, or restart the server for you. – adeneo Oct 6 at 2:26.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions