On 2013-08-07 10:40:47, marc@questright.com wrote:
Show quoted text> Net::Twitter::Lite expects decoded strings, not byte strings. So,
> decode
> your strings on input, or use utf8::upgrade as appropriate before
> passing
> the string to Net::Twitter::Lite's API methods.
>
No, this is not correct approach in perl. A perl application has to behave the same for codepoints 128..255 regardless if the utf8 flag is set or not.
Show quoted text>
> On Wed, Aug 7, 2013 at 6:09 AM, Slaven_Rezic via RT <
> bug-Net-Twitter-Lite@rt.cpan.org> wrote:
>
> > Wed Aug 07 09:09:40 2013: Request 87672 was acted upon.
> > Transaction: Ticket created by SREZIC
> > Queue: Net-Twitter-Lite
> > Subject: Warnings when using non-ASCII characters
> > Broken in: 0.12004
> > Severity: (no value)
> > Owner: Nobody
> > Requestors: SREZIC@cpan.org
> > Status: new
> > Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=87672 >
> >
> >
> > With the following script:
> >
> > use Net::Twitter::Lite::WithAPIv1_1;
> > my $nt = Net::Twitter::Lite::WithAPIv1_1->new(...);
> > my $aeoeue = "\344\366\374"; # äöü
> > my $r = $nt->search($aeoeue);
> >
> > I get the following warning:
> >
> > Net::OAuth warning: your OAuth message appears to contain some multi-
> > byte
> > characters that need to be decoded via Encode.pm or a PerlIO layer
> > first.
> > This may result in an incorrect signature. at
> > /opt/perl-5.14.2/lib/site_perl/5.14.2/Net/OAuth/Message.pm line 106.
> >
> > The warning does not happen if only ASCII characters are used, or if
> > the
> > string has internally the utf8 flag set (e.g. if utf8::upgrade is
> > called on
> > the string).
> >
> > Regards,
> > Slaven
> >
> >