Re: Japanese with UTF-8 and mysql

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

 



Richard Lynch wrote:

On Mon, June 6, 2005 11:02 pm, Mark Sargent said:
The correct way - if one wants utf-8 as charset - is:
header("Content-Type: index/html; charset=utf-8");

actually, if I add this,

header("Content-Type: index/html; charset=utf-8");

as suggested, firefox prompts to download the page, instead of just
displaying the page.

You have chosen to open
    productdetails.php
which is a : PHP file
from: http://localhost/
What should firefox do with this file?
Open with Browse..
Save to disk

Weird, what's with that. Cheers.

Sigh.
me too

I think they implemented the IE bug that looks at URLs instead of Headers
in some cases.
actually, get this in both Firefox and Mozilla

Rename your PHP script to be .htm,

done

and then use .htaccess with ForceType
to make it really be a PHP script.

<Files productdetails.htm>
 ForceType application/x-httpd-php
</Files>
just checking; that goes into the .htaccess file, which is placed in the same dir as the files for this site..?

Then the browser CAN NOT KNOW you used PHP to generate the file, so cannot
possibly screw up...
if above is correct, it did, with the renamed productdetails.htm page...this is after restarting the server too..did I misunderstand something.?

Well, at least it can't screw up in the way it is doing now. :-)
perhaps it's just me..?

Cheers.

Mark Sargent.

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