Advertisement
hakonhagland

encode-elastic

Sep 7th, 2021
2,007
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.20 KB | None | 0 0
  1. use strict;
  2. use warnings;
  3. use utf8;
  4. use Encode qw(encode encode_utf8);
  5.  
  6. my $str = "hè testä";
  7. printf "%vX\n", $str;
  8. printf "%vX\n", encode_utf8($str);
  9. printf "%vX\n", encode("iso-8859-1", $str);
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement