in reply to Re: unicode in perl
in thread unicode in perl

ok here is my problem what i need to do is write the sequence generated from a function to a file which is has encoding as unicode qy{z{y~ is what i get in the file why are the ,, characters missing

Replies are listed 'Best First'.
Re^3: unicode in perl
by ikegami (Patriarch) on Jun 27, 2011 at 07:50 UTC

    This post doesn't add anything new.

    You have text encoded using cp1252 and you are pretending it's not encoded. Decoding it will do the trick.

      output iam getting after decoding is qy{z{�y�~ actuall should be qy{z{y~

        Please provide the precise contents of the scalar. This will do:

        { use Data::Dumper qw( Dumper ); local $Data::Dumper::Useqq = 1; print(Dumper($data_to_print)); }

        If possible, please provide the *desired* byte content of the file too.