On Wed, 13 Nov 2019 19:12:10 +0100 André Warnier (tomcat/perl) <a...@ice-sa.com> wrote: >
I also found that calls to binmode in output filters generate a double encoding. Here is a paste of the code of an output filter that adds a menu, some headers and closing tags to the html pages generated by previous modules; it reads from STDOUT, not from a file: https://pastebin.com/trhjfDxX It uses this : > #on arrive à la fin du contenu > if ($f->seen_eos) { > > $content = Encode::decode_utf8( $content ) . '</div>' ; Never had a problem with it. I have handlers, not output filters, that read from files and use this : open DOCUMENT_CONTENT, "<:encoding(UTF-8)", "$document_content" or die "can't open $document_content : $!\n" ; -- Bien à vous, Vincent Veyron https://compta.libremen.com Logiciel libre de comptabilité générale en partie double