in reply to Conversion from UTF-8 to windows-1256 encoding
Update: open itself lets you specify the encoding for each filehandle. Perl's input/output layer does the conversion for you.open IN, "<:encoding(utf8)", $ARGV[0]; open OUT, ">:encoding(cp-1256)", $ARGV[1]; while (<IN>) { print OUT } __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Conversion from UTF-8 to windows-1256 encoding
by iman_saleh (Novice) on Oct 29, 2007 at 11:25 UTC | |
by almut (Canon) on Oct 29, 2007 at 12:21 UTC | |
by ikegami (Patriarch) on Oct 29, 2007 at 17:48 UTC | |
by Sixtease (Friar) on Oct 29, 2007 at 11:50 UTC | |
by iman_saleh (Novice) on Oct 29, 2007 at 12:19 UTC |