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">
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php