mirror of
https://github.com/imapsync/imapsync.git
synced 2025-08-22 08:10:50 +02:00
1.836
This commit is contained in:
parent
3afeea4a16
commit
8d76e44c5e
243 changed files with 57452 additions and 10330 deletions
26
W/paypal_reply/MapUTF8_bug2
Executable file
26
W/paypal_reply/MapUTF8_bug2
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/perl -w
|
||||
|
||||
# $Id: 8859_utf8,v 1.1 2010/10/01 13:00:09 gilles Exp gilles $
|
||||
|
||||
use Unicode::MapUTF8 qw(to_utf8 from_utf8 utf8_supported_charset);
|
||||
use strict ;
|
||||
use warnings ;
|
||||
|
||||
die unless (utf8_supported_charset('ISO-8859-1'));
|
||||
|
||||
#local $/ ;
|
||||
|
||||
my @string = <> ;
|
||||
|
||||
my $string = join( q{}, @string ) ;
|
||||
# print $string ;
|
||||
|
||||
my $string_utf8 = to_utf8({ -string => $string, -charset => 'ISO-8859-1' }) ;
|
||||
|
||||
print $string_utf8 ;
|
||||
|
||||
#foreach my $string ( "A", "\xE9", "\xE9\x1A" ) {
|
||||
# print to_utf8({ -string => $string, -charset => 'ISO-8859-1' }), "\n";
|
||||
#}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue