in reply to Re: encode charset
in thread encode charset

In order to inform your browser that you are sending utf8 characters, add this to your head section:
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

Replies are listed 'Best First'.
Re^3: encode charset
by moritz (Cardinal) on Mar 07, 2008 at 08:24 UTC
    No! There's no reason to put that in the HTML when you send a correct header.

    You'll only get problems when you change the charset, and you forget to adjust it in both places.

    The meta header can only be parsed if the browser already guessed a somewhat compatible encoding, and is an ugly hack for hosting services where you can't influence the header.

    But if you're using CGI anyway, you can just as well use the right solution, not an ugly hack.