in reply to Re: Text File Encoding under Windows
in thread Text File Encoding under Windows
The result was an output file which represented all special characters correctly but contained a line of empty boxes in every second line.#! /usr/bin/perl -w use strict; use locale; open INPUT, "<:encoding(UTF-16LE)", $ARGV[0]; open OUTPUT, ">:encoding(UTF-16LE)", "./Output_UTF-16"; while ( <INPUT> ) { # long list of regex-based replacements print OUTPUT $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Text File Encoding under Windows
by almut (Canon) on Mar 18, 2010 at 09:35 UTC | |
by pat_mc (Pilgrim) on Mar 18, 2010 at 14:49 UTC |