Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Encode::FB_CROAK eating up strings?

by polettix (Vicar)
on Apr 11, 2016 at 10:26 UTC ( #1160099=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    encode('UTF-8', $chars, Encode::FB_CROAK);
    print length($chars),
       " characters - third encode, FB_CROAK, on original string\n";
    
  2. or download this
    8 characters - initial string
    8 characters - first encode, no FB_CROAK
    8 characters - second encode, FB_CROAK on, readonly string
    0 characters - third encode, FB_CROAK, on original string
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1160099]
Approved by Discipulus
Front-paged by Discipulus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2023-10-01 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?