Hey Rimantas,

I added a line of PHP code as follows:

<?php header("Content-Type:text/html; charset=UTF-8"); ?>

and it works fine now.

I also installed Live Headers in FF for future debugging.

Many thanks for that.

Cheers,

Nick

Rimantas Liubertas wrote:
Here's the issue:

We are working on a site that incorporates Russian text. It displays OK on
our development server, but when transferring the files to the live server
we get garbled output.
<…>
However, the same file uploaded to the live server displays the last menu
item incorrectly:

http://www.imperial-russian-dating.com/utf8-test.php

The file has been saved as utf8 encoded in the editor (Komodo) and then
uploaded to each server.

Any ideas ?

There are headers sent by your live server:
Connection:close
Content-Length:862
Content-Type:text/html; charset=ISO-8859-1
Date:Tue, 07 Jul 2009 16:22:43 GMT
Server:Apache/2.2.3 (CentOS)
X-Powered-By:PHP/5.1.6

Take a look at Content-Type header: it specifies charset as iso-8859-1. Charset
specified in HTTP has preference over charset in META. If you have
access to your
server configuration look for AddDefaultCharset directive in Apache
config. You can either
change it to UTF or comment it out.

Regards,
Rimantas
--
http://rimantas.com/


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************



--
Nick Roper
partner
logical elements
innovative web and internet solutions
zend/php & mysql approved partner
email: [email protected]
phone: +44 (0)1749 676798
mobile: +44 (0)7590 538686
web: www.logical.co.uk
skype: nick.roper / +44 20 7870 9587

logical elements, 34, Chamberlain St, Wells, Somerset, BA5 2PJ, UK
-------------------------------------------------------------------------------

IMPORTANT This communication is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have reason to believe that you are not the intended recipient of this communication, please contact the sender immediately. Any views or opinions expressed in this email may not be those of Logical Elements.

WARNING Computer viruses can be transmitted by E-Mail. The recipient should check this E-Mail and any attachments for the presence of viruses. Logical Elements accepts no liability for any damage caused by any virus transmitted by this E-Mail. This E-mail and any attachments may not be copied or forwarded without the express permission of Logical Elements. In the event of any unauthorised copying or forwarding, the recipient will be required to indemnify Logical Elements against any claim for loss or damage caused by any viruses or otherwise.


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to