5 or plan skip_all, 'Install Encode run this test';
9 DBICTest::Schema::Artist->load_components('UTF8Columns');
10 DBICTest::Schema::Artist->utf8_columns('name');
11 Class::C3->reinitialize();
13 my $artist = $schema->resultset("Artist")->create( { name => 'uni' } );
14 ok( Encode::is_utf8( $artist->name ), 'got name with utf8 flag' );
16 my $utf8_char = 'uniuni';
17 Encode::_utf8_on($utf8_char);
18 $artist->name($utf8_char);
19 ok( !Encode::is_utf8( $artist->{_column_data}->{name} ),
20 'store utf8 less chars' );