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

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.

Replies are listed 'Best First'.
Re^4: unicode in perl
by paramjit (Novice) on Jun 27, 2011 at 07:58 UTC
    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.

        byte contentes are same $VAR1 = "\204qy\204{z\204\267{\204\217y\204\243\177\204\217~"; still extra character are displayed in text file qy{z{�y�~ instead of this qy{z{y~