in reply to Re^4: how to split a file.txt in multiple text files
in thread how to split a file.txt in multiple text files
Use -Ci to set UTF-8 encoding of all input; or use -CD to use utf-8 for all input and output, and you can even drop the encoding from the open line.
Update: Using redirection works for me (Linux). Are you sure the input is encoded in UTF-8?
Update2: Verified with the file you linked to.
works correctly on Linux.perl -CS split2.pl < input.txt
|
|---|