Уборка за стажером здесь: этот включающий файл с французским текстом правильно отображает символы UTF-8 с акцентом на моем тестовом сервере
http://www.surreydata.dreamhosters.com/index.php?page=project_presentation_fr
На странице есть <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
Когда страница перемещается на рабочий сервер, символы отображаются некорректно, даже если
<? header('Content-Type:text/html; charset=UTF-8'); ?>
добавлено.
http://vps6533.inmotionhosting.com/~hnocor5/surrey/index.php?page=project_presentation_fr
Однако, если доступ к включению осуществляется напрямую, проблема с кодировкой исчезает:
http://vps6533.inmotionhosting.com/~hnocor5/surrey/project_presentation_fr.php
Какой-нибудь совет, что нужно сделать, чтобы исправить это?
Начальный блок Live HTTP Headers показывает правильную кодировку.
http://vps6533.inmotionhosting.com/~hnocor5/surrey/index.php?page=project_presentation_fr
GET /~hnocor5/surrey/index.php?page=project_presentation_fr HTTP/1.1
Host: vps6533.inmotionhosting.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection: keep-alive
HTTP/1.1 200 OK
Date: Sun, 08 Jan 2012 21:31:28 GMT
Server: Apache
Keep-Alive: timeout=3, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8