Skip to content

Instantly share code, notes, and snippets.

@ghandmann
Created August 26, 2014 06:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghandmann/2d739205952a30d37ef6 to your computer and use it in GitHub Desktop.
Save ghandmann/2d739205952a30d37ef6 to your computer and use it in GitHub Desktop.
Mojo::Util url_escape and 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