Forum Moderators: open

Message Too Old, No Replies

Character Encoding Issues

         

bernk

10:49 pm on Jan 15, 2008 (gmt 0)

10+ Year Member



Hello,

I'm having some newly discovred problems. I was working on a website locally using the MAMP environment for development. I just uploaded the site to the client's FTP and now some strange character problems appeared. Here is an example, a simple apostrophe is shows as: today’s (in the word today's)

Other problems on the Spanish side of the site occur as well, all the accented characters like ñ get messed up too. I don't understand why they were not messed up on my local server?!

I used TextMate for development and Transmit for uploading the files to the FTP.

Any ideas what could be going on here?

lammert

12:00 am on Jan 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The problem is not with the upload procedure of the files, but with the default character set of the local and remote server. Probably your development server is set to UTF-8, which allows for characters in many different languages, and the remote server to ISO-8859-1. Once you change the default character set of the remote server, everything will be OK.

You can either set the default characterset in the httpd.conf of the remote server, or in the head of every single document with a meta tag.

bernk

12:30 am on Jan 16, 2008 (gmt 0)

10+ Year Member



Hi lammert, thank you for the response. I checked and I do in fact have the meta charset declaration in the header.php include which is included in every page.


<meta http-equiv="content-type" content="text/html; charset=utf-8">

That is what I have.

You were right though, the client's server is set to iso-8859-1. The problem seems to be that my meta tag is having no effect on this.

I don't have enough access to the server to change the default charset although I'm sure I can make that happen if need be. Any other way I can try?