in reply to Re: Somthing related to encoding ??
in thread Somthing related to encoding ??

Thanks for your reply

but i don't want to "pack" i want to "unpack" the word to get something like :

المحتلة

Replies are listed 'Best First'.
Re^3: Somthing related to encoding ??
by newroz (Monk) on Aug 11, 2005 at 13:28 UTC
    Sorry, for misunderstood. I had replied in a hurry.
    An alternative approach for other case.Cast these ones.
    perl -e 'my $str="czd"; my $s=join " ", map { sprintf "&#%d;", $_ } un +pack("U*",$str); print my $s;'
    or
     perl -e 'my $str="عفاريت"; my $s=join " ", map { sprintf "&#%d;", $_ } unpack("U*",$str); print my $s;'