Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Read (sysread) binary data into utf8 string

by shmem (Chancellor)
on Apr 03, 2017 at 23:38 UTC ( [id://1186924]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    shmem [qurx] ~ > perl -CO
    
    ...
    1
    $s: 'µ'
    
  2. or download this
    print chr hex 'b5' eq "\x{00b5}";
    __END__
    1
    
  3. or download this
    use Encode qw( from_to _utf8_on );
    use Devel::Peek;
    ...
      PV = 0x249b2c0 "\302\265"\0 [UTF8 "\x{b5}"]
      CUR = 2
      LEN = 10
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1186924]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-03-29 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found