Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: utf weirdness in regex

by graff (Chancellor)
on Jul 24, 2004 at 08:43 UTC ( [id://377109]=note: print w/replies, xml ) Need Help??


in reply to Re^2: utf weirdness in regex
in thread utf weirdness in regex

Of course, when using FB_CROAK as the CHECK argument, you normally want to wrap it in an eval:
my $encoding = "whatever"; my $octets = "characters in whatever encoding..."; eval '$_ = decode( $encoding, $octets, Encode::FB_CROAK )'; if( $@ ) { report_an_error(); ... }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-25 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found