Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use strict;
- use warnings;
- use utf8;
- use Encode qw(encode encode_utf8);
- my $str = "hè testä";
- printf "%vX\n", $str;
- printf "%vX\n", encode_utf8($str);
- printf "%vX\n", encode("iso-8859-1", $str);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement