[Catalyst] URI->new() with utf8 string and Unicode::Encoding will
not work (but URI->new() with utf8 octets will work)
Bill Moseley
moseley at hank.org
Fri Mar 4 05:33:08 GMT 2011
Does this help?
On Thu, Mar 3, 2011 at 2:38 PM, Erik Wasser <erik.wasser at iquer.net> wrote:
> foreach my $u ('http://localhost/test/%E3%81%8B',
> "http://localhost/test/\x{304b}" )
> {
> my $request =3D HTTP::Request->new(
> 'GET'=3D> *encode_utf8($u)*, [ 'Content-Type' =3D> 'text/html;
> charset=3Dutf8', ],
> );
> print $request->as_string();
> my $response =3D request( $request );
> is( $response->content, 'length =3D 1', 'length =3D 1' );
> }
>
>
-- =
Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110303/cd6bb=
7b2/attachment.htm
More information about the Catalyst
mailing list