File: 04_uni_but_utf8.t

package info (click to toggle)
libtext-csv-encoded-perl 0.25-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 288 kB
  • sloc: perl: 434; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 237 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

use strict;
use utf8;
use Text::CSV::Encoded;

my $csv  = Text::CSV::Encoded->new;

eval q| $csv->decode( "あいうえお" ) |;

ok( !$@ );


eval q| $csv->decode('utf8', "あいうえお") |;

ok( $csv->automatic_UTF8 ? 1 : $@ );

1;