On Wednesday 13 November 2019 19:12:10 André Warnier (tomcat/perl) wrote: > My question is : can I - and how -, set the filehandle that corresponds to > the $f->read(), to a UTF-8 layer ? > I have tried > > line 155: binmode($f,'encoding:(UTF-8)');
Hi André! When specifying PerlIO layer for file handle, you need to write colon character before layer name. So correct binmode call is: binmode($f, ':encoding(UTF-8)'); > and that triggers an error : > Not a GLOB reference at (my filter) line 155.\n > )