Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Why is utf8 flag set after Encode::decode of pure ASCII?

by brycen (Monk)
on Mar 29, 2010 at 16:58 UTC ( [id://831664]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    After $utf8 = decode('foo', $octet); ,
    
    ...
      In ISO-8859-1                              ON
      In any other Encoding                      ON
      ---------------------------------------------
    
  2. or download this
    #use utf8;
    #use encoding 'iso-8859-1';
    ...
    $a=Encode::decode('iso-8859-1',$a);
    $b=Encode::decode('iso-8859-1',$b);
    print "a=",Encode::is_utf8($a)," b=",Encode::is_utf8($b),"\n\n";
    
  3. or download this
    ${^UNICODE}=63
    a= b=
    a=1 b=1
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://831664]
Front-paged by keszler
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 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found