in reply to Re^3: accents and diacritical marks in a web page
in thread accents and diacritical marks in a web page

Hi Joost,

use utf8; # and even adding... binmode(STDOUT,":utf8");

doesn't do it. Stuff comes out garbled. It would be nice if it worked, as I wouldn't have use Encode::decode_utf8 on everything, but right now only the latter seems to work.

If you have any suggestions, let me know. In the meantime I will continue to proceed with Encode and then HTML::Entities

Many thanks to you and shmem.

--

when small people start casting long shadows, it is time to go to bed

Replies are listed 'Best First'.
Re^5: accents and diacritical marks in a web page
by Joost (Canon) on Sep 10, 2007 at 16:24 UTC
    If you use that snippet, you should also make sure the HTML and/or the HTTP headers signal the right encoding (i.e. UTF-8)

    The only thing "use utf8;" does is remove the need to "decode_utf8" on your string literals*. The binmode(STOUD,":utf8"); signals that all output on STDOUT should be utf-8 encoded.

    * i.e. it does nothing to input read from files etc - it only influences literals.