Help for this page

Select Code to Download


  1. or download this
    while (my $row = $csv->getline ($fh)) {
        # Fix inability of CSV_XS to handle UTF8 strings.
    ...
    
        print $row->[4];
        }
    
  2. or download this
    #!/pro/bin/perl
    
    ...
        utf8::decode ($_) for @$row;
        print join "," => @$row, "\n";
        }
    
  3. or download this
    $ od -t x1 test.csv
    0000000 fe ff 00 73 00 65 00 f1 00 f3 01 59 00 2c 00 31
    0000020 00 32 00 33 00 2c 00 c5 01 42 00 e9 01 61 01 71
    0000040 01 46 00 2c 00 0d 00 0a
    0000050