On Feb 17, 2005, at 1:32 PM, Philippe de Rochambeau wrote:

use encoding "MacRoman"; #, STDIN => "MacRoman", STDOUT => "iso-8859-1";

You've specified STDOUT as 8859-1...

open FH, ">data2.txt" or die "$!";
print FH "$data";

But you're not printing to STDOUT. Try opening FH like this:

open FH, '>:encoding(iso-8859-1)', 'data2.txt' or die $!;

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org



Reply via email to