Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: High bit character encoding in HTML

by crenz (Priest)
on Apr 21, 2003 at 09:00 UTC ( [id://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! :)

    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://251963]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-10-04 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (42 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.