Answer the question
In order to leave comments, you need to log in
How to read a file line by line in Russian in perl?
I try to read the file line by line, everything works fine with English text, but when the file is in Russian... there is a problem.
Are there any features of iterating over the lines of a file in Russian?
Answer the question
In order to leave comments, you need to log in
Try adding:
# Под виндой
use locale;
# Под *nix
use POSIX qw( locale_h );
setlocale( LC_ALL, "ru_RU.UTF-8" );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question