summaryrefslogtreecommitdiffstats
path: root/t/uri_utf8.t
diff options
context:
space:
mode:
Diffstat (limited to 't/uri_utf8.t')
-rw-r--r--t/uri_utf8.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/uri_utf8.t b/t/uri_utf8.t
new file mode 100644
index 0000000..f10a745
--- /dev/null
+++ b/t/uri_utf8.t
@@ -0,0 +1,17 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use utf8;
+use Test::More;
+
+use HTTP::Request;
+use Web::Request;
+
+my $path = "/Платежи";
+
+my $hreq = HTTP::Request->new(GET => "http://localhost" . $path);
+my $req = Web::Request->new_from_request($hreq);
+
+is $req->uri->path, '/%D0%9F%D0%BB%D0%B0%D1%82%D0%B5%D0%B6%D0%B8';
+
+done_testing;