note
kennethk
Read through [doc://perlunicode]. All your I/O operations need to be performed in UTF-8. That means not only <c>open (STOPWORDS, '<:encoding(UTF-8)', $ARGV[1])</c> as [ForgotPasswordAgain] suggests and <c>open (INFILE, '<:encoding(UTF-8)', $ARGV[0])</c> as [derby] suggests, but also <c>binmode STDOUT, ":encoding(utf8)"</c> before you try to print. The fact that it works with "standard" text says it is almost guaranteed to be a Unicode problem.
743338
743338