Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

From: Date: Sun, 13 Aug 2006 01:05:00 +0000
Subject: Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-240589@lists.php.net to get a copy of this message
It's me again. I might have solved it... in a way. Still quite puzzled about why IE don't give a dime about the meta encoding line in the html head tag. Here's what I did. The aforementioned header file now adds a header() statement sending a content-type that also tells the charset, utf-8. : ---snip--- <?php header('Content-Type: text/html; charset=utf-8'); echo '<?xml version="1.0" encoding="UTF-8"?>';?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head>
       <meta name="Content-type" content="text/html; charset=UTF-8" />
---snip--- I don't know if it's the best way to solve it but IE seems happy with it, and I haven't seen any sideeffects in FF so far.

« previous php.general (#240589) next »