Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Handling utf-8 characters when scraping

by haukex (Bishop)
on Dec 27, 2018 at 08:17 UTC ( #1227736=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Devel::Peek;
    my $str = "\x{20AC}";
    ...
      CUR = 3
      LEN = 10
      COW_REFCNT = 1
    
  2. or download this
    use Data::Dump;
    my $str = "\x{20AC}";
    dd $str, utf8::is_utf8($str);
    __END__
    ("\x{20AC}", 1)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2020-12-02 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (35 votes). Check out past polls.

    Notices?