1
0
mirror of https://github.com/imapsync/imapsync.git synced 2024-11-17 00:02:29 +01:00
imapsync/W/learn/imap_utf7_tests_Encode_IMAPUTF7

25 lines
521 B
Plaintext
Raw Normal View History

2020-04-11 01:15:57 +02:00
#!/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 ;
#no utf8 ;
print( Encode::IMAPUTF7::encode('IMAP-UTF-7', 'Répertoire' ), "\n" );
print( Encode::IMAPUTF7::decode('IMAP-UTF-7', 'R&AOk-pertoire' ), "\n" );