Re: [PHP] Character encoding hell

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

 



Where is the filename coming from? Is it hard-coded in the script or is your script reading it from a directory listing?

Have you checked to see if that filename is what you think it is on the Linux server?

Was Apache the web server both times, or was iis used on windows? If it was, look for any errant .htaccess files causing problems.

Lastly, what happens if you directly request that file from with the browser itself, without php scripts in the equation.

Thanks,
Ash
http://www.ashleysheridan.co.uk

----- Reply message -----
From: "Marc Guay" <marc.guay@xxxxxxxxx>
Date: Tue, Oct 26, 2010 18:22
Subject: [PHP] Character encoding hell
To: "ash@xxxxxxxxxxxxxxxxxxxx" <ash@xxxxxxxxxxxxxxxxxxxx>
Cc: "php-general" <php-general@xxxxxxxxxxxxx>


> Have you tried using the utf8 meta tag rather than using the htmlentities()
> function? That should solve the first issue, as I reckon the problem lies
> with the way your encoding the filename.

The page is being encoded in UTF-8.  Without htmlentities() the
special character is displayed as a black triangle with a question
mark in it.  Does that indicate that the filename isn't being stored
as UTF-8?

> Lastly, have you made sure your php scripts are saved as utf8, as that can
> sometimes solve some odd problems with character encoding.

This didn't seem to change anything.

Marc

-- 
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