Re: Issues with tidy and utf-8 encoding
| From: | Richard Lynch | Date: | Thu, 30 Nov 2006 17:30:24 +0000 |
| Subject: | Re: Issues with tidy and utf-8 encoding | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-245358@lists.php.net to get a copy of this message | ||
On Thu, November 30, 2006 10:21 am, Youri LACAN-BARTLEY wrote:
> Which is really dodgy if you ask me.
...
> I've set a meta tag as follows, but that seems to be modified by tidy
> on
> the fly if ever the used encoding differs from the one indicated in
> the
> meta tag.
Errrr. Using an encoding other than what's indicated in the META tag
seems like the dodgy thing to me. :-) :-) :-)
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Also make sure that you are sending proper header:
Content-type: text/html; charset=utf-8
Firefox et al trust headers.
IE trusts only META tags, and ignore headers.
Don't ask me why.
If Tidy really is messing up the charset/encoding, I can't help you
with that part of it -- I just know that it will SEEM messed up in a
browser until you get both headers and META tags agreeing with what
you actually send.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?