Hi. Your text files are probably encoded in UTF-8. So you need to tell this to Perl, and in particular to File::Slurp. You can do this simply replacing your line
my $string = read_file($file); with my $string= read_file( $file, binmode => ':utf8' );This requires your file to be in UTF-8. You should be able to change the "utf8" with the encoding of your text. You can check this using simply a Text Editor like Notepad++
In reply to Re: dealing with cyrillic characters
by IB2017
in thread dealing with cyrillic characters
by Aldebaran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |