Odd website charact...
 

Subscribe now and choose from over 30 free gifts worth up to £49 - Plus get £25 to spend in our shop

[Closed] Odd website character rendering problem...

9 Posts
5 Users
0 Reactions
58 Views
Posts: 0
Free Member
Topic starter
 

On our new server, special characters aren't rendered properly:
[img] [/img]

anyone know what magic runes are required to fix it ?


 
Posted : 04/03/2011 9:32 pm
Posts: 0
Free Member
Topic starter
 

oh and the identical HTML rendered correctly from the old server, so it must be something in the headers...

Date: Fri, 04 Mar 2011 21:51:43 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Thu, 03 Mar 2011 00:07:59 GMT
Accept-Ranges: bytes
Content-Length: 7219
Connection: close
Content-Type: text/html; charset=UTF-8

200 OK


 
Posted : 04/03/2011 9:49 pm
 Tom
Posts: 0
Free Member
 

It's a character encoding problem - your server is saying it's unicode. Either rework your html to unicode or change the AddCharset/AddDefaultCharset setting in Apache config.

You could try something like this in your .htaccess file:
AddCharset iso-8859-1 .shtml .html


 
Posted : 04/03/2011 9:50 pm
Posts: 0
Free Member
 

or declare the character set in the HTML template you use. That would have the same effect.

Actually, I think declaring it in the HTML template is better practice but I'm prepared to be shot down in flames over that...

Rachel


 
Posted : 04/03/2011 9:53 pm
Posts: 0
Free Member
Topic starter
 

ah, thanks
like I said the same HTML rendered correctly on a different server...


 
Posted : 04/03/2011 9:56 pm
Posts: 0
Free Member
 

I always use...

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


 
Posted : 04/03/2011 9:59 pm
Posts: 0
Free Member
Topic starter
 

I've capitulated and used & pound; 🙁


 
Posted : 04/03/2011 10:19 pm
 Del
Posts: 8242
Full Member
 

as it goes, your character renders a bit oddly on this website too Simon. 😀


 
Posted : 04/03/2011 11:41 pm
Posts: 0
Free Member
 

*hee hee*


 
Posted : 04/03/2011 11:53 pm
Posts: 0
Free Member
Topic starter
 

ow ow my sides have split!


 
Posted : 04/03/2011 11:54 pm