mirror of
https://github.com/imapsync/imapsync.git
synced 2025-06-07 13:15:22 +02:00
1.977
This commit is contained in:
parent
93b917b12b
commit
1d08afaba6
139 changed files with 27179 additions and 6213 deletions
27
W/learn/imap_Encode_IMAPUTF7_decode
Executable file
27
W/learn/imap_Encode_IMAPUTF7_decode
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
use strict ;
|
||||
use warnings ;
|
||||
use Encode::IMAPUTF7 ;
|
||||
|
||||
sub imap_utf7_decode_new
|
||||
{
|
||||
use utf8 ;
|
||||
my ( $s ) = shift ;
|
||||
return( Encode::IMAPUTF7::decode("IMAP-UTF-7", $s ) ) ;
|
||||
}
|
||||
|
||||
sub imap_utf7_encode_new
|
||||
{
|
||||
use utf8 ;
|
||||
my ( $s ) = shift ;
|
||||
return( Encode::IMAPUTF7::encode("IMAP-UTF-7", $s ) ) ;
|
||||
}
|
||||
|
||||
#use utf8 ;
|
||||
while ( <> )
|
||||
{
|
||||
chomp ;
|
||||
#print( Encode::IMAPUTF7::encode('IMAP-UTF-7', $_ ), "\n" ) ;
|
||||
print( Encode::IMAPUTF7::decode('IMAP-UTF-7', $_ ), "\n" ) ;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue