1 2 3 4 5 6 7 8 9 10 11 12
open (VCF , "<D:/www/msweb001/files/vCard.vcf") ; @VCF=<VCF> ; close(VCF) ; $VCF = join(/ / , @VCF) ; $VCF =~ s/\[!!vcf_titel!!\]/$funktion/ig ; $VCF =~ s/\[!!vcf_name!!\]/$name/ig ; $VCF =~ s/\[!!vcf_vorname!!\]/$vorname/ig ; print "Content-type: text/x-vcard\n"; print "Content-Disposition: attachment; filename=test.vcf\n\n"; print "$VCF";
1 2 3 4
open (VCF , "<:win32", "D:/www/msweb001/files/vCardLU.vcf") ; open (VCF , "<:crlf", "D:/www/msweb001/files/vCardLU.vcf") ; open (VCF , "<:encoding(ISO-8859-1)", "D:/www/msweb001/files/vCardLU.vcf") ; open (VCF , "<:encoding(UFT-8)", "D:/www/msweb001/files/vCardLU.vcf") ;
2013-07-10T15:59:59 kailyyDas File ist zumindest jetzt dos/Windows (und nicht mehr Unix) aber immer noch ANSI UTF-8 statt nur ANSI.
1 2
open my $outFH, '>:encoding(ISO-8859-1)', 'foo.dos' or die "$!"; print $outFH "Ätsch\nBätsch";