Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: UTF8 Validity

by ikegami (Patriarch)
on Feb 21, 2008 at 20:10 UTC ( [id://669379]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Encode  qw( decode FB_CROAK );
    
    ...
    
    my $s_chars = eval { decode('UTF-8', $s_utf8, FB_CROAK) };
    print("valid decode = ", defined($s_chars)?1:0,"\n");
    
  2. or download this
    utf8::valid = 1
    valid decode = 0
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found