Created
August 26, 2014 06:45
-
-
Save ghandmann/2d739205952a30d37ef6 to your computer and use it in GitHub Desktop.
Mojo::Util url_escape and unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use 5.10.0; | |
use Mojo::Util qw/url_escape/; | |
my $snowman = "\N{U+2603}"; | |
say url_escape($snowman); # says %2603 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment