> Could you please help to know what i am missing or doing wrong.
> I'll greatly appreciate the help.
I think all you're missing is (1) that a script written in utf8 needs
to declare that fact with a
use utf8;
and (2) any filehandle you're using that has utf8 semantics needs to
be switched to utf8 as well, so something like
binmode $_, ":utf8" for *STDOUT, *TEMP_OUT;
Hope that helps,
--
andreas
Although it's safe on output, it's better to get used to using
:encoding(utf8) instead of :utf8. Using :utf8 on input can cause
stability and security issues.
--
Met vriendelijke groet, Kind regards, Korajn salutojn,
Juerd Waalboer: Perl hacker <#####@juerd.nl> <http://juerd.nl/sig>
Convolution: ICT solutions and consultancy <sa...@convolution.nl>
1;
http://www.perlmonks.org/?node_id=644786
http://www.perlfoundation.org/perl5/index.cgi?the_utf8_perlio_layer
http://perldoc.perl.org/perlunicode.html#Security-Implications-of-Unicode
(perlunicode doesn't refer to :utf8 but does explain how malformed utf8
can cause trouble.)
Perl change #32461 updated documentation to reflect the preference for
:encoding
http://perl5.git.perl.org/perl.git/commit/740d4bb23b722729f87a23733be98429529fd900
> Although it's safe on output, it's better to get used to using
> :encoding(utf8) instead of :utf8. Using :utf8 on input can cause
> stability and security issues.
That's new to me. Do you have a link that backs this up?
--
andreas