http://qs321.pair.com?node_id=251963


in reply to High bit character encoding in HTML

I had the same problem with German and Chinese pages. I just keep the original input and instead add an appropriate charset header in the HTML head. For the German pages, I use:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

For the Chinese pages, I use utf8. I believe all the characters used in Dutch should be in iso-8859-1, so you could just use that one.

Replies are listed 'Best First'.
Re: Re: High bit character encoding in HTML
by oakbox (Chaplain) on Apr 22, 2003 at 08:00 UTC
    *slap hand to forehead*

    Don't I feel like a silly goose. Due to bad design, I've got a lot of print Content statements peppering that particular script. Sure enough, some of them include the charset=iso-8859-1 and some do not. I popped in the appropriate metatags on all of them and presto, everything works as expected.

    This excersize has also pointed out the need for me to centralize my outputs in a sane place, probably at the module level. ++ to crenz for the splash of cold water in my face! :)

    oakbox

Re: Re: High bit character encoding in HTML
by iguanodon (Priest) on Apr 21, 2003 at 16:02 UTC
    Hmmm... couldn't you just use utf8 for everything then?

      Yes, you are right. I will be transitioning to UTF-8 as soon as I have the time :) It's actually quite easy, it's just not a priority for me right now. And I recommended iso8859-1 for him, because that's still the standard all tools (Browsers, perl) can deal with.