Re: Page encoding
| From: | Marek Kilimajer | Date: | Sat, 25 Oct 2003 23:03:28 +0000 |
| Subject: | Re: Page encoding | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167591@lists.php.net to get a copy of this message | ||
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">