in reply to newline in unicode under windows
One solution is to remove the crlf layer.
Another is to put the crlf before the ucs2le encoding, but I am not sure how to do that.open(my $fh, ">:raw", $file); binmode($fh, ":encoding(ucs2le)"); print $fh, "\r\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: newline in unicode under windows
by snaporaz (Acolyte) on Jul 12, 2004 at 22:15 UTC | |
|
Re^2: newline in unicode under windows
by ysth (Canon) on Jul 13, 2004 at 01:56 UTC |