Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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.


Comment on Re: High bit character encoding in HTML
Download Code
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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2015-07-29 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls