Re: Page encoding

From: Date: Sat, 25 Oct 2003 23:08:43 +0000
Subject: Re: Page encoding
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-167594@lists.php.net to get a copy of this message
Have You commented out Header() function? Marek Kilimajer wrote:
Please reply to the list, your chance of getting answer will increase. Use reply all button if Netscape/7.02 has it. I tried you example, except that my editor saved the page in unicode, so I had to change windows-1251 to utf-8. Then it displayed correctly. Cheba wrote:
Ok. Try Yourself. <?php Header('Content-type: text/html; charset=windows-1251'); echo ' <html> <head> <meta http-equiv="Content-type" content="text/html; charset=windows-1251"> </head> <body> Русский Українська </body> </html>'; ?> You shold have Cyrillic fonts to see difference. Comment out line 3 (the Header() function). Marek Kilimajer wrote:
That was the first mistake I noticed, now I see it was completely wrong, it should be: <meta http-equiv="Content-type" content="text/html; charset=windows-1251">


« previous php.general (#167594) next »