Compare commits
1 commit
7a08e41148
...
2a780f9eed
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a780f9eed |
1 changed files with 3 additions and 4 deletions
7
mew.pl
7
mew.pl
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue