in reply to Encoding of web page differs on different servers

If cat shows the correctly while the browser does not, the difference is mostly like a wrong header on one of the servers.

Try

wget -S $url

For both servers and compare the Content-Type headers.

I'd also recommend installing an UTF-8 locale, because perl sometimes does funny things without it. (I never found out what exactly went wrong, but with a working locale I had much less headache).

Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^2: Encoding of web page differs on different servers
by Wolfgang (Novice) on Nov 20, 2009 at 11:33 UTC
    Hi Moritz.

    declared encoding is the same in both cases.

    you wrote I'd also recommend installing an UTF-8 locale, because perl sometimes does funny things without it. (I never found out what exactly went wrong, but with a working locale I had much less headache).

    Exactly that is my feeling, too

    Wolfgang