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);
|
||||
|
||||
if ($input =~ /[\x80-\x{ffff}]/o) {
|
||||
$output = encode('MIME-Q', $input);
|
||||
$output =~ s/=20/_/g;
|
||||
print encode('MIME-Q', $input);
|
||||
} 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