Compare commits

..

1 commit

Author SHA1 Message Date
2a780f9eed Fix encoding.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2026-05-30 12:07:58 +02:00

7
mew.pl
View file

@ -17,10 +17,9 @@ my $input = join (' ',@ARGV);
utf8::decode($input); utf8::decode($input);
if ($input =~ /[\x80-\x{ffff}]/o) { if ($input =~ /[\x80-\x{ffff}]/o) {
$output = encode('MIME-Q', $input); print encode('MIME-Q', $input);
$output =~ s/=20/_/g;
} else { } else {
$output = decode('MIME-Q', $input); print decode('MIME-Q', $input);
}; };
print "$output\n"; print "\n";