Forum Moderators: open

Message Too Old, No Replies

Some characters changed to "Squares"

         

daisho

10:56 pm on Mar 26, 2007 (gmt 0)

10+ Year Member



Hey All,

This one has got me. I'm sure it's a character encoding thing but I can't track it down.

I have an issue that any "'" (apostrophe) or various other characters show up as little squares in IE7 or a questionmark type icon in Mozilla.

This happened after a server rebuild and the data is the same and fine.

Each webpage has the following tags:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<META NAME="charset" CONTENT="ISO-8859-1">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">

I've also forced the default apache2 charset to ISO-8859-1 as well as the PHP charset to ISO-8859-1.

The only thing I haven't done yet is change the Linux charset. It's a CentOS 4.4 install that is default en_US.UTF-8.

If I view the source of the page in IE7 I see the apostrophe so it seems that the actual character is coming across fine.

Please someone tell me what silly little thing I'm missing?

Thanks,
Serge.

encyclo

11:21 pm on Mar 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your server may well be sending a HTTP header declaring the page as UTF-8 - and if the data is saved as ISO-8859-1 then the meta charset won't override it.

Check what is happening with a tool like the Firefox Live HTTP headers extension.

johnnie

8:42 pm on Mar 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try saving your file as UTF-8 (and change you charset meta-tag to UTF-8) and see what happens.