in reply to How to know to know if string is utf8 encoded or decoded.
#!/usr/bin/perl
use warnings;
use strict;
use feature qw{ say };
use utf8;
use Encode;
my @strings = ('test1℗ὓ.txt', '1669-SCC-HôpitauxdeSaint-Maurice-POC.PIF');
for my $string (@strings) {
say encode('UTF-8', $string);
}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to know to know if string is utf8 encoded or decoded.
by Anonymous Monk on Jul 25, 2019 at 16:23 UTC | |
by haj (Vicar) on Jul 26, 2019 at 17:55 UTC | |
by ikegami (Patriarch) on Jul 29, 2019 at 05:54 UTC | |
by Anonymous Monk on Jul 25, 2019 at 16:26 UTC | |
by 1nickt (Canon) on Jul 25, 2019 at 23:22 UTC | |
by Anonymous Monk on Jul 26, 2019 at 04:01 UTC | |
by 1nickt (Canon) on Jul 26, 2019 at 13:42 UTC | |
|