Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    print Encode::is_utf8($ustr)
          ? "is" : "isn't",
          " tagged as a unicode string\n";
    
  2. or download this
    Here is how Encode takes care of the utf8 flag.
    
    ...
            In ISO-8859-1                              ON
            In any other Encoding                      ON
            ---------------------------------------------