Problem with Perl + UTF8
I am working with big Web project using Perl + Selenium and I have had some problems with it: the project is on Russian so utf using is needed.
please see a part of code below:
[ QUOTE ]
$a=$sel->get_body_text();# getting body text using selenium framework
$autf=encode("utf8", $a);#it's on russian so i save it in utf8 in temporary file, it looks OK in the file.
open (TEMP, ">>temp.txt");
print TEMP "$autf";
open(TEMP2, ">>temp2.txt");#i create another file to put the string i needed from temp.txt file
print TEMP2 "$butf";
[/ QUOTE ]
With it I do not get readable Russian text in temp2.txt, but text is temp.txt is OK.
Please give me some advice.
Re: Problem with Perl + UTF8
...or maybe I should choose another method to do this?