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

-CS uses UTF-8 for standard input and output, but the diamond operator uses the ARGV handle, not STDIN.

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.

perl -CS split2.pl < input.txt
works correctly on Linux.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]