File: utf8.t

package info (click to toggle)
liburi-perl 1.54-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 592 kB
  • ctags: 300
  • sloc: perl: 4,874; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!perl

use strict;
use warnings;

use utf8;

use Test::More 'no_plan';
use URI;

is(URI->new('http://foobar/mooi€e')->as_string, 'http://foobar/mooi%E2%82%ACe');

my $uri = URI->new('http:');
$uri->query_form("mooi€e" => "mooi€e");
is( $uri->query, "mooi%E2%82%ACe=mooi%E2%82%ACe" );