For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > March 2008 > Re: Mozilla browsers request a page twice









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Mozilla browsers request a page twice
AnrDaemon

2008-03-31, 8:11 pm

Greetings, Michael Fesser.
In reply to Your message dated Wednesday, March 12, 2008, 20:45:26,

> .oO(Gary Hasler)


[color=darkred]
> Your server doesn't send any charset information. You should fix that.
> Currently every browser has to guess and fall back to its own default,
> which might cause a lot of new problems.


> In PHP this can be accomplished with a header() call:


> header('Content-Type: text/html; charset=...');


I'd recommend to set it in the php.ini
Directives

default_mimetype = "text/plain"
default_charset = "cp866"

I've used these for console development.
For the server environment it is

default_mimetype = "text/html"
default_charset = "Windows-1251"

for me.


--
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com