Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Read (sysread) binary data into utf8 string

by shmem (Chancellor)
on Apr 03, 2017 at 23:38 UTC ( #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
Node Status?
node history
Node Type: note [id://1186924]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2020-12-03 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (49 votes). Check out past polls.

    Notices?