in reply to Windows newlines in unicode
Hi BillKSmith,
Try adding the :crlf layer, i.e. open(my $in, "<:encoding(UTF-16):crlf", "INPUT.TXT"). I did a quick test and it works for me; CRLFs are converted to \n and paragraph mode ($/ = '';) works too.
Hope this helps,
-- Hauke D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Windows newlines in unicode
by BillKSmith (Monsignor) on Sep 17, 2016 at 16:57 UTC | |
by haukex (Archbishop) on Sep 17, 2016 at 17:01 UTC |