Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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
Node Status?
node history
Node Type: note [id://251963]
[james28909]: how can i write a while loop on one line (in a script) something like print "this\n" && print "that" && <DATA> && print the other\n" && next if /this matches/ while <DATA>?
[james28909]: i have tried with && and and and have tried to rearrange the functions as well to no avail
[shmem]: use parens to group expressions
[shmem]: you can't use next in a statement modifier

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2018-05-20 18:42 GMT
Find Nodes?
    Voting Booth?