-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi Yuki,
I'm a confused :-)
Tried to narrow down:
This small script using an utf8 string with German umlauts
`use strict;
use warnings;
use Text::vCard::Precisely::V4;
use utf8;
use open ':std', IO => ':encoding(UTF-8)';
my $vc = Text::vCard::Precisely::V4->new();
my $fn = "Först Last";
printf '%vX', $fn;
print "\n";
$vc->fn( $fn );
`
results in this output and error:
46.F6.72.73.74.20.4C.61.73.74 Attribute (content) does not pass the type constraint because: The value you provided, Först Last, was not supported at constructor Text::vCard::Precisely::V4::Node::new (defined at /home/michael/perl5/lib/perl5/Text/vCard/Precisely/V4/Node.pm line 67) line 46 Text::vCard::Precisely::V4::Node::new('Text::vCard::Precisely::V4::Node', 'HASH(0x55f9434e2410)') called at /home/michael/perl5/lib/perl5/Text/vCard/Precisely/V4.pm line 324 Text::vCard::Precisely::V4::__ANON__('FM-vrst Last') called at /home/michael/perl5/lib/perl5/x86_64-linux-thread-multi/Moose/Meta/TypeCoercion.pm line 65 Moose::Meta::TypeCoercion::__ANON__('FM-vrst Last') called at accessor Text::vCard::Precisely::V4::fn (defined at /home/michael/perl5/lib/perl5/Text/vCard/Precisely/V4.pm line 350) line 5 Text::vCard::Precisely::V4::fn('Text::vCard::Precisely::V4=HASH(0x55f9434c03f0)', 'FM-vrst Last') called at vc.pl line 14
Any hints would be great,
- Michael