in reply to Re: How to print the actual bytes of UTF-8 characters ?
in thread How to print the actual bytes of UTF-8 characters ?
Magic!
Could you explain how it works?
I had tried a simple minded unpack('C', $char) but it gave me the wrong answer.
There are two things that I dont understand in your unpack solution
(1) what are the contents of $bytes, and
(2) what is the function of the slash "\" in
open my $BYTE, '>:utf8', \ my $bytes;
?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to print the actual bytes of UTF-8 characters ?
by choroba (Cardinal) on Feb 06, 2014 at 17:16 UTC | |
by RCH (Sexton) on Feb 06, 2014 at 17:49 UTC |