Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: High bit character encoding in HTML

by crenz (Priest)
on Apr 21, 2003 at 09:00 UTC ( #251963=note: print w/replies, xml ) Need Help??

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! :)


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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://251963]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2023-12-03 20:43 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (20 votes). Check out past polls.