Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: utf weirdness in regex

by december (Pilgrim)
on Jul 24, 2004 at 04:35 UTC ( #377077=note: print w/replies, xml ) Need Help??


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

Thanks, that looks a lot more like what I expected!

In the future, I will use the CHECK argument to see if something went wrong in the conversion. I hope that will lift some of my initial confusion as to what is in which charset...

Replies are listed 'Best First'.
Re^3: utf weirdness in regex
by graff (Chancellor) on Jul 24, 2004 at 08:43 UTC
    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://377077]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2022-01-21 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (57 votes). Check out past polls.

    Notices?