perl-unicode

Re: Unicode characters

2009-05-24 01:11:36
On Fri, 22 May 2009 20:49:24 +0530, Saravanan Balaji 
<Saravanan(_dot_)Balaji(_at_)MorganStanley(_dot_)com> said:

  > 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

<Prev in Thread] Current Thread [Next in Thread>