I use following piece of code to write smiley Unicode string into a file,
use Encode;
my $smiley = "\x{263a}";
open my $out, ">:utf8", "file" or die "$!";
print $out $smiley;
however, if we dump the output file in binary mode, the hex looks
wrong, it isn't 263a, any idea what's wrong with the code?
0000000: e298 ba ...
--
perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"[EMAIL PROTECTED]
")'
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/