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

Re: UTF8 Validity

by ikegami (Pope)
on Feb 21, 2008 at 20:10 UTC ( #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
Node Status?
node history
Node Type: note [id://669379]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2020-11-25 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?