RE: FRench characters not displayed correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote:
>
> Thanks Robert, 
> 
> I have the following headers:
> 
> 
> http://fr.xxxx.com/student/themes/english/locker_room/student.html
> 
> GET /student/themes/english/locker_room/student.html? HTTP/1.1
> Host: fr.xxxx.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14)
> Gecko/20080404 Firefox/2.0.0.14
> Accept:
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
> 0.8,image/png,*/*;q=0.5
> 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
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://fr.xxxx.com/student/themes/english/locker_room/student.html
> Cookie: PHPSESSID=818678404c170c8e4f5d237c1d0280a8
> If-Modified-Since: Sat, 17 Nov 2007 11:40:26 GMT
> If-None-Match: "6b97e-a9d-619b9e80"
> Cache-Control: max-age=0
> 
> HTTP/1.x 304 Not Modified
> Date: Thu, 17 Apr 2008 08:31:32 GMT
> Server: Apache/2.0.55 (Unix) PHP/5.1.2
> Connection: Keep-Alive
> Keep-Alive: timeout=15, max=200
> Etag: "6b97e-a9d-619b9e80"
> -----------------------------
> 
> 
> Now I see that the headers have: 
> 
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> 
> Which to me seems like it is sending both ISO-8859-1 and UTF-8? 

No, that's what kind of content the server is willing to accept from
various sources such as POST.  You want the following somewhere near the
beginning of your script:

<?php

    header( 'Content-type: text/html; charset=iso-8859-1' );

?>

Cheers,
Rob.

-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux